MessagesSetEncryptedTyping.deserialize constructor
MessagesSetEncryptedTyping.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesSetEncryptedTyping.deserialize(BinaryReader reader) {
// Read [MessagesSetEncryptedTyping] fields.
final peer = reader.readObject() as InputEncryptedChatBase;
final typing = reader.readBool();
// Construct [MessagesSetEncryptedTyping] object.
final returnValue = MessagesSetEncryptedTyping(peer: peer, typing: typing);
// Now return the deserialized [MessagesSetEncryptedTyping].
return returnValue;
}