MessagesSendReaction.deserialize constructor
MessagesSendReaction.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesSendReaction.deserialize(BinaryReader reader) {
// Read [MessagesSendReaction] fields.
final flags = reader.readInt32();
final big = (flags & 2) != 0;
final addToRecent = (flags & 4) != 0;
final peer = reader.readObject() as InputPeerBase;
final msgId = reader.readInt32();
final hasReactionField = (flags & 1) != 0;
final reaction =
hasReactionField ? reader.readVectorObject<ReactionBase>() : null;
// Construct [MessagesSendReaction] object.
final returnValue = MessagesSendReaction(
big: big,
addToRecent: addToRecent,
peer: peer,
msgId: msgId,
reaction: reaction,
);
// Now return the deserialized [MessagesSendReaction].
return returnValue;
}