ChannelsDeleteHistory.deserialize constructor
ChannelsDeleteHistory.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelsDeleteHistory.deserialize(BinaryReader reader) {
// Read [ChannelsDeleteHistory] fields.
final flags = reader.readInt32();
final forEveryone = (flags & 1) != 0;
final channel = reader.readObject() as InputChannelBase;
final maxId = reader.readInt32();
// Construct [ChannelsDeleteHistory] object.
final returnValue = ChannelsDeleteHistory(
forEveryone: forEveryone,
channel: channel,
maxId: maxId,
);
// Now return the deserialized [ChannelsDeleteHistory].
return returnValue;
}