Layer 220
MessagesGetScheduledHistory
Get scheduled messages
method
Users
messages.getScheduledHistory#f516760b peer:InputPeer hash:long = messages.Messages;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer |
| Hash | long | Hash used for caching, for more info click here. To generate the hash, populate the ids array with the id, edit_date (0 if unedited) and date (in this order) of the previously returned messages (in order, i. e. ids = [id 1, (edit_date 1 ?? 0), date 1, id 2, (edit_date 2 ?? 0), date 2,.] ). |
Returns
messages.MessagesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// MessagesGetScheduledHistory - positional arguments result, err := client.MessagesGetScheduledHistory(&tg.InputPeerUser{UserID: int64(123456789)}, int64(0)) if err != nil { // handle error } // result is *tg.MessagesMessages