bots.updateUserEmojiStatus #

Change the emoji status of a user (invoked by bots, see here » for more info on the full flow)

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.updateUserEmojiStatus#ed9f30c5 user_id:InputUser emoji_status:EmojiStatus = Bool;

Parameters #

NameTypeDescription
user_idInputUserThe user whose emoji status should be changed
emoji_statusEmojiStatusThe emoji status

Result #

Bool

Only bots can use this method #

Possible errors #

CodeTypeDescription
400USER_BOT_REQUIREDThis method can only be called by a bot.
400USER_ID_INVALIDThe provided user ID is invalid.
403USER_PERMISSION_DENIEDThe user hasn't granted or has revoked the bot's access to change their emoji status using bots.toggleUserEmojiStatusPermission.

Emoji status #

Telegram allows users to set an emoticon or a custom emoji as status, to show next to their name in chats and profiles.

bots.toggleUserEmojiStatusPermission #

Allow or prevent a bot from changing our emoji status »