Fires when a user temporarily stops your bot. While stopped, the user cannot exchange messages with it.

💡 Stopping is reversible — the user stays subscribed. Expect userStartedBot if they turn it back on, and userLeftBot if they remove it for good.


Event

method is "userStoppedBot".

Field Type Returned Description
method String Yes "userStoppedBot"
user User Yes The user who stopped the bot.

Preconditions

None. This event is delivered to every bot.

SDKs

SDK Callback
Java userStoppedBot(User user)
JavaScript userStoppedBot(user)
Python user_stopped_bot(self, user)

Example

Event

{
  "method": "userStoppedBot",
  "user": {
    "id": "90089584801498185"
  }
}