A package that exports static methods to work with SOGS requests. These are utilities not tied to a specific Session instance (user).
  • TypeScript 57%
  • JavaScript 43%
Find a file
2026-01-28 14:56:08 +01:00
.vscode Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
src Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
.gitignore Initial commit 2025-01-03 00:04:50 +04:00
.prettierignore Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
.prettierrc Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
bun.lock Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
eslint.config.js Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
LICENSE Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
package.json Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
README.md Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
tsconfig.build.json Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00
tsconfig.json Add prettier and formatter, make code style consistent, sort package.json, migrate from bun.lockb to bun.lock 2026-01-28 14:56:08 +01:00

@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 · Tor: hlothdevzkti6suoksy7lcy7hmpxnr3msu5waokzaslsi2mnx5ouu4qd.onion/donate

License

MIT