Layer 220
BotsToggleUserEmojiStatusPermission
Allow or prevent a bot from changing our emoji status
method
Users
bots.toggleUserEmojiStatusPermission#6de6392 bot:InputUser enabled:Bool = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot |
| Enabled | Bool | Whether to allow or prevent the bot from changing our emoji status |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
Gogram Example
// BotsToggleUserEmojiStatusPermission - positional arguments result, err := client.BotsToggleUserEmojiStatusPermission(&tg.InputUserSelf{}, true) if err != nil { // handle error } // result is *tg.Bool