Layer 220
MessagesSendQuickReplyMessages
Send a quick reply shortcut.
method
Users
messages.sendQuickReplyMessages#6c750de1 peer:InputPeer shortcut_id:int id:Vector<int> random_id:Vector<long> = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The peer where to send the shortcut (users only, for now). |
| ShortcutId | int | The ID of the quick reply shortcut to send. |
| Id | Vector<int> | Specify a subset of messages from the shortcut to send; if empty, defaults to all of them. |
| RandomId | Vector<long> | Unique client IDs required to prevent message resending, one for each message we're sending, may be empty (but not recommended). |
Returns
UpdatesPossible 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. |
Gogram Example
// MessagesSendQuickReplyMessages - positional arguments result, err := client.MessagesSendQuickReplyMessages(&tg.InputPeerUser{UserID: int64(123456789)}, 0, []int{}, []long{}) if err != nil { // handle error } // result is *tg.Updates