messages.sendQuickReplyMessages
Send a quick reply shortcut ».
func (c *Client) MessagesSendQuickReplyMessages(ctx context.Context, request *MessagesSendQuickReplyMessagesRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesSendQuickReplyMessages(ctx, &tg.MessagesSendQuickReplyMessagesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The peer where to send the shortcut (users only, for now). |
ShortcutID | int | yes | The ID of the quick reply shortcut to send. |
ID | []int | yes | Specify a subset of messages from the shortcut to send; if empty, defaults to all of them. |
RandomID | []int64 | yes | Unique client IDs required to prevent message resending, one for each message we're sending, may be empty (but not recommended). |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 403 | PREMIUM_ACCOUNT_REQUIRED | A premium account is required to execute this action. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.sendQuickReplyMessages#6c750de1