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.
Event
method is "userLeftBot".Field | Type | Returned | Description |
method | String | Yes | "userLeftBot" |
user | Yes | The user who left. |
Preconditions
None. This event is delivered to every bot.
SDKs
SDK | Callback |
Java | userLeftBot(User user) |
JavaScript | userLeftBot(user) |
Python | user_left_bot(self, user) |
Example
Event
json{ "method": "userLeftBot", "user": { "id": "90089584801498185" } }