messages.getPreparedInlineMessage
Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events
func (c *Client) MessagesGetPreparedInlineMessage(ctx context.Context, request *MessagesGetPreparedInlineMessageRequest) (*MessagesPreparedInlineMessage, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetPreparedInlineMessage(ctx, &tg.MessagesGetPreparedInlineMessageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesPreparedInlineMessage
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Bot | InputUserClass | yes | The bot that owns the mini app that emitted the web_app_send_prepared_message event |
ID | string | yes | The id from the web_app_send_prepared_message event |
Returns
*MessagesPreparedInlineMessage
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | ID_EXPIRED | The passed prepared inline message ID has expired. |
| 400 | ID_INVALID | The passed ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getPreparedInlineMessage#857ebdb8