Layer 220
MessagesGetReplies
Get messages in a reply thread
method
Users
messages.getReplies#22ddd30c peer:InputPeer msg_id:int offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer |
| MsgId | int | Message ID |
| OffsetId | int | Offsets for pagination, for more info click here |
| OffsetDate | int | Offsets for pagination, for more info click here |
| AddOffset | int | Offsets for pagination, for more info click here |
| Limit | int | Maximum number of results to return, see pagination |
| MaxId | int | If a positive value was transferred, the method will return only messages with ID smaller than max_id |
| MinId | int | If a positive value was transferred, the method will return only messages with ID bigger than min_id |
| Hash | long | Hash used for caching, for more info click here |
Returns
messages.MessagesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | TOPIC_ID_INVALID | The specified topic ID is invalid. |
Gogram Example
// MessagesGetReplies - using Params struct result, err := client.MessagesGetReplies(&tg.MessagesGetRepliesParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, MsgId: 0, OffsetId: 0, OffsetDate: 0, AddOffset: 0, Limit: 0, MaxId: 0, MinId: 0, // ... }) if err != nil { // handle error } // result is *tg.MessagesMessages