UpdateDeleteChannelMessages.deserialize constructor
UpdateDeleteChannelMessages.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateDeleteChannelMessages.deserialize(BinaryReader reader) {
// Read [UpdateDeleteChannelMessages] fields.
final channelId = reader.readInt64();
final messages = reader.readVectorInt32();
final pts = reader.readInt32();
final ptsCount = reader.readInt32();
// Construct [UpdateDeleteChannelMessages] object.
final returnValue = UpdateDeleteChannelMessages(
channelId: channelId,
messages: messages,
pts: pts,
ptsCount: ptsCount,
);
// Now return the deserialized [UpdateDeleteChannelMessages].
return returnValue;
}