Skip to main content

messages.getAttachMenuBot

Returns attachment menu entry for a bot mini app that can be launched from the attachment menu »

func (c *Client) MessagesGetAttachMenuBot(ctx context.Context, bot InputUserClass) (*AttachMenuBotsBot, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetAttachMenuBot(ctx, bot)
if err != nil {
return err
}
_ = res // *AttachMenuBotsBot
return nil
})

Parameters

NameTypeRequiredDescription
BotInputUserClassyesBot ID

Returns

*AttachMenuBotsBot

Possible errors

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.

References