MessagesSetHistoryTTL.deserialize constructor

MessagesSetHistoryTTL.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

  // Construct [MessagesSetHistoryTTL] object.
  final returnValue = MessagesSetHistoryTTL(
    peer: peer,
    period: period,
  );

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