MessagesSendEncrypted.deserialize constructor
MessagesSendEncrypted.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesSendEncrypted.deserialize(BinaryReader reader) {
// Read [MessagesSendEncrypted] fields.
final flags = reader.readInt32();
final silent = (flags & 1) != 0;
final peer = reader.readObject() as InputEncryptedChatBase;
final randomId = reader.readInt64();
final data = reader.readBytes();
// Construct [MessagesSendEncrypted] object.
final returnValue = MessagesSendEncrypted(
silent: silent,
peer: peer,
randomId: randomId,
data: data,
);
// Now return the deserialized [MessagesSendEncrypted].
return returnValue;
}