MessagesDeleteChatUser.deserialize constructor
MessagesDeleteChatUser.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory MessagesDeleteChatUser.deserialize(BinaryReader reader) {
// Read [MessagesDeleteChatUser] fields.
final flags = reader.readInt32();
final revokeHistory = (flags & 1) != 0;
final chatId = reader.readInt64();
final userId = reader.readObject() as InputUserBase;
// Construct [MessagesDeleteChatUser] object.
final returnValue = MessagesDeleteChatUser(
revokeHistory: revokeHistory,
chatId: chatId,
userId: userId,
);
// Now return the deserialized [MessagesDeleteChatUser].
return returnValue;
}