messages.getBotApp
Obtain information about a direct link Mini App
func (c *Client) MessagesGetBotApp(ctx context.Context, request *MessagesGetBotAppRequest) (*MessagesBotApp, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetBotApp(ctx, &tg.MessagesGetBotAppRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesBotApp
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
App | InputBotAppClass | yes | Bot app information obtained from a Direct Mini App deep link ». |
Hash | int64 | yes | Hash used for caching, for more info click here |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_APP_BOT_INVALID | The bot_id passed in the inputBotAppShortName constructor is invalid. |
| 400 | BOT_APP_INVALID | The specified bot app is invalid. |
| 400 | BOT_APP_SHORTNAME_INVALID | The specified bot app short name is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getBotApp#34fdc5c3