Skip to main content

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

NameTypeRequiredDescription
BotInputUserClassyesThe bot
EnabledboolyesWhether to allow or prevent the bot from changing our emoji status

Returns

bool

Possible errors

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.

References