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