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