messages.getReplies
Get messages in a reply thread
func (c *Client) MessagesGetReplies(ctx context.Context, request *MessagesGetRepliesRequest) (MessagesMessagesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetReplies(ctx, &tg.MessagesGetRepliesRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesMessagesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Peer |
MsgID | int | yes | Message ID |
OffsetID | int | yes | Offsets for pagination, for more info click here |
OffsetDate | int | yes | Offsets for pagination, for more info click here |
AddOffset | int | yes | Offsets for pagination, for more info click here |
Limit | int | yes | Maximum number of results to return, see pagination |
MaxID | int | yes | If a positive value was transferred, the method will return only messages with ID smaller than max_id |
MinID | int | yes | If a positive value was transferred, the method will return only messages with ID bigger than min_id |
Hash | int64 | yes | Hash used for caching, for more info click here |
Returns
Possible 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getReplies#22ddd30c