send-message-ws

command
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 5 Imported by: 0

README

Message sending

Create websocket connection

Connect to wss://web.tada.team/messaging/<team-uid> with header:

Token: <bot-token-value>

Send composing event (optional)

{
  "event": "client.chat.composing",
  "params": {
    "jid": "<chat-jid>",
    "composing": true
  }
}

All client.chat.composing arguments: https://github.com/tada-team/tdproto/blob/master/client_chat_composing.go

Send message itself

{
  "event": "client.message.updated",
  "params": {
    "to": "<chat-jid>",
    "content": {
      "text": "hello world!",
      "type":"plain"
    }
  }
}

All client.message.updated arguments: https://github.com/tada-team/tdproto/blob/master/client_message_updated.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址