Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleReceive a message sent to a bot
linenumberstrue
{
    "name": "chat.receiveMessage",
    "message": {
        "from": "u:<user>",
        "to": "u:<bot>",
        "text": "hello"
    }
}

Anchor
Channel
Channel
Can a Bot join a channel and send messages to it?

Bots cannot join channels, but they can send messages to it. While calling chat.sendMessage, set to to the channel id, and token to the bot token.

...