logo
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
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

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