Fires when a user permanently removes your bot. Messaging stops and does not resume unless they join again.
💡 This is the terminal event. A temporary pause arrives as userStoppedBot instead.
method is "userLeftBot".
| Field | Type | Returned | Description |
|---|---|---|---|
method |
String | Yes | "userLeftBot" |
user |
User | Yes | The user who left. |
None. This event is delivered to every bot.
| SDK | Callback |
|---|---|
| Java | userLeftBot(User user) |
| JavaScript | userLeftBot(user) |
| Python | user_left_bot(self, user) |
{
"method": "userLeftBot",
"user": {
"id": "90089584801498185"
}
}