Layer 220
BotsUpdateUserEmojiStatus
Change the emoji status of a user (invoked by bots, see here for more info on the full flow)
method
Bots
bots.updateUserEmojiStatus#ed9f30c5 user_id:InputUser emoji_status:EmojiStatus = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| UserId | InputUser | The user whose emoji status should be changed |
| EmojiStatus | EmojiStatus | The emoji status |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
| 403 | USER_PERMISSION_DENIED | The user hasn't granted or has revoked the bot's access to change their emoji status using bots. toggle User Emoji Status Permission. |
Gogram Example
// BotsUpdateUserEmojiStatus - positional arguments result, err := client.BotsUpdateUserEmojiStatus(&tg.InputUserSelf{}, &tg.EmojiStatus{}) if err != nil { // handle error } // result is *tg.Bool