InputPeerChannel.deserialize constructor

InputPeerChannel.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InputPeerChannel.deserialize(BinaryReader reader) {
  // Read [InputPeerChannel] fields.
  final channelId = reader.readInt64();
  final accessHash = reader.readInt64();

  // Construct [InputPeerChannel] object.
  final returnValue = InputPeerChannel(
    channelId: channelId,
    accessHash: accessHash,
  );

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