messages.getQuickReplyMessages
Fetch (a subset or all) messages in a quick reply shortcut ».
func (c *Client) MessagesGetQuickReplyMessages(ctx context.Context, request *MessagesGetQuickReplyMessagesRequest) (MessagesMessagesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetQuickReplyMessages(ctx, &tg.MessagesGetQuickReplyMessagesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesMessagesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ShortcutID | int | yes | Quick reply shortcut ID. |
ID | []int | — | IDs of the messages to fetch, if empty fetches all of them. |
Hash | int64 | yes | Hash for pagination, generated as specified here » (not the usual algorithm used for hash generation). |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SHORTCUT_INVALID | The specified shortcut is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getQuickReplyMessages#94a495c3