bots.toggleUserEmojiStatusPermission
Allow or prevent a bot from changing our emoji status »
func (c *Client) BotsToggleUserEmojiStatusPermission(ctx context.Context, request *BotsToggleUserEmojiStatusPermissionRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.BotsToggleUserEmojiStatusPermission(ctx, &tg.BotsToggleUserEmojiStatusPermissionRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Bot | InputUserClass | yes | The bot |
Enabled | bool | yes | Whether to allow or prevent the bot from changing our emoji status |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
References
- Official documentation
- Generated Go reference
- TL definition:
bots.toggleUserEmojiStatusPermission#6de6392