MessagesDeleteTopicHistory.deserialize constructor

MessagesDeleteTopicHistory.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

  // Construct [MessagesDeleteTopicHistory] object.
  final returnValue = MessagesDeleteTopicHistory(
    peer: peer,
    topMsgId: topMsgId,
  );

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