Skip to main content

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

NameTypeRequiredDescription
AppInputBotAppClassyesBot app information obtained from a Direct Mini App deep link ».
Hashint64yesHash used for caching, for more info click here

Returns

*MessagesBotApp

Possible errors

CodeTypeDescription
400BOT_APP_BOT_INVALIDThe bot_id passed in the inputBotAppShortName constructor is invalid.
400BOT_APP_INVALIDThe specified bot app is invalid.
400BOT_APP_SHORTNAME_INVALIDThe specified bot app short name is invalid.

References