InputPeerChannel.deserialize constructor
InputPeerChannel.deserialize(
- 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;
}