UpdateBotMessageReactions.deserialize constructor
UpdateBotMessageReactions.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateBotMessageReactions.deserialize(BinaryReader reader) {
// Read [UpdateBotMessageReactions] fields.
final peer = reader.readObject() as PeerBase;
final msgId = reader.readInt32();
final date = reader.readDateTime();
final reactions = reader.readVectorObject<ReactionCountBase>();
final qts = reader.readInt32();
// Construct [UpdateBotMessageReactions] object.
final returnValue = UpdateBotMessageReactions(
peer: peer,
msgId: msgId,
date: date,
reactions: reactions,
qts: qts,
);
// Now return the deserialized [UpdateBotMessageReactions].
return returnValue;
}