Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesDialog
MsgIDintyesMessage ID

Returns

[]ReadParticipantDate

Possible errors

CodeTypeDescription
400CHAT_TOO_BIGThis method is not available for groups with more than chat_read_mark_size_threshold members, see client configuration ».
400MSG_ID_INVALIDInvalid message ID provided.
400MSG_TOO_OLDchat_read_mark_expire_period seconds have passed since the message was sent, read receipts were deleted.
400PEER_ID_INVALIDThe provided peer id is invalid.

References