ChannelsGetParticipants.deserialize constructor
ChannelsGetParticipants.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelsGetParticipants.deserialize(BinaryReader reader) {
// Read [ChannelsGetParticipants] fields.
final channel = reader.readObject() as InputChannelBase;
final filter = reader.readObject() as ChannelParticipantsFilterBase;
final offset = reader.readInt32();
final limit = reader.readInt32();
final hash = reader.readInt64();
// Construct [ChannelsGetParticipants] object.
final returnValue = ChannelsGetParticipants(
channel: channel,
filter: filter,
offset: offset,
limit: limit,
hash: hash,
);
// Now return the deserialized [ChannelsGetParticipants].
return returnValue;
}