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
| Name | Type | Required | Description |
|---|---|---|---|
Bot | InputUserClass | yes | Bot ID |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getAttachMenuBot#77216192