messages.getMessageReadParticipants
Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent, see client configuration for more info ».
func (c *Client) MessagesGetMessageReadParticipants(ctx context.Context, request *MessagesGetMessageReadParticipantsRequest) ([]ReadParticipantDate, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.MessagesGetMessageReadParticipants(ctx, &tg.MessagesGetMessageReadParticipantsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // []ReadParticipantDate
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Dialog |
MsgID | int | yes | Message ID |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_TOO_BIG | This method is not available for groups with more than chat_read_mark_size_threshold members, see client configuration ». |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | MSG_TOO_OLD | chat_read_mark_expire_period seconds have passed since the message was sent, read receipts were deleted. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getMessageReadParticipants#31c1c44f