Fires when a user adds your bot from their device. From this point on the user can exchange messages with it.
💡 Joining and starting are separate events. A user who joins then blocks and re-enables the bot will produce userStoppedBot and userStartedBot without joining again.
method is "userJoinedBot".
| Field | Type | Returned | Description |
|---|---|---|---|
method |
String | Yes | "userJoinedBot" |
user |
User | Yes | The user who joined. |
None. This event is delivered to every bot.
| SDK | Callback |
|---|---|
| Java | onUserJoinedBot(User user) |
| JavaScript | onUserJoinedBot(user) |
| Python | on_user_joined_bot(self, user) |
{
"method": "userJoinedBot",
"user": {
"id": "90089584801498185"
}
}