BotsResetBotCommands.deserialize constructor

BotsResetBotCommands.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotsResetBotCommands.deserialize(BinaryReader reader) {
  // Read [BotsResetBotCommands] fields.
  final scope = reader.readObject() as BotCommandScopeBase;
  final langCode = reader.readString();

  // Construct [BotsResetBotCommands] object.
  final returnValue = BotsResetBotCommands(
    scope: scope,
    langCode: langCode,
  );

  // Now return the deserialized [BotsResetBotCommands].
  return returnValue;
}