Fires when a user restarts your bot after having stopped it. Messaging resumes from this point.

💡 A user who joins for the first time produces userJoinedBot, not this event.


Event

method is "userStartedBot".

Field Type Returned Description
method String Yes "userStartedBot"
user User Yes The user who restarted the bot.

Preconditions

None. This event is delivered to every bot.

SDKs

SDK Callback
Java userStartedBot(User user)
JavaScript userStartedBot(user)
Python user_started_bot(self, user)

Example

Event

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