BotsGetBotCommands.deserialize constructor
BotsGetBotCommands.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory BotsGetBotCommands.deserialize(BinaryReader reader) {
// Read [BotsGetBotCommands] fields.
final scope = reader.readObject() as BotCommandScopeBase;
final langCode = reader.readString();
// Construct [BotsGetBotCommands] object.
final returnValue = BotsGetBotCommands(
scope: scope,
langCode: langCode,
);
// Now return the deserialized [BotsGetBotCommands].
return returnValue;
}