MessagesGetMessageReadParticipants.deserialize constructor

MessagesGetMessageReadParticipants.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesGetMessageReadParticipants.deserialize(BinaryReader reader) {
  // Read [MessagesGetMessageReadParticipants] fields.
  final peer = reader.readObject() as InputPeerBase;
  final msgId = reader.readInt32();

  // Construct [MessagesGetMessageReadParticipants] object.
  final returnValue = MessagesGetMessageReadParticipants(
    peer: peer,
    msgId: msgId,
  );

  // Now return the deserialized [MessagesGetMessageReadParticipants].
  return returnValue;
}