Skip to content
/ sogs Public

A package that exports static methods to work with SOGS requests. These are utilities not tied to a specific Session instance (user).

Notifications You must be signed in to change notification settings

sessionjs/sogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@session.js/sogs

A package that exports static methods to work with SOGS requests. These are utilities not tied to a specific Session instance (user).

decryptSogsMessageData

Use this method to decrypt message base64 blob to SignalService object.

Example:

decryptSogsMessageData('ChoKBkhlbGxvITi1v5/CwjKqBggKBk15IEJvdIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
/* ->
SignalService.Content {
  dataMessage: DataMessage {
    attachments: [],
    preview: [],
    body: "Hello!",
    timestamp: Long {
      low: 675798965,
      high: 404,
      unsigned: true
      <...>
    }
    profile: LokiProfile {
      displayName: "My Bot",
      profilePicture: "",
      <...>
    },
    <...>
  }
  <...>
}
*/

Made for session.js

Use Session messenger programmatically with Session.js: Session bots, custom Session clients, and more.

Donate

hloth.dev/donate

About

A package that exports static methods to work with SOGS requests. These are utilities not tied to a specific Session instance (user).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published