Versions Compared

Key

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

...

You can enable your app's bot during the app creation process in the Advanced info section. You will see your bot's identifier and bot token on enabling your Bot. Any messages sent to your app's bot will be sent at this identifier. You can use the token to make method calls on behalf of the bot e.g. sending messages to a user.

How do I set my

...

bot's name and

...

avatar?

Your bot will automatically assume your App's name followed by "Bot" and your App's icon as its default avatar

How will my

...

app's bot be visible to my users?

Once you enable your bot, any users who install or have installed your app will see your app's bot in their contact list.

...

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.

...