BotCommandScopePeer.deserialize constructor

BotCommandScopePeer.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotCommandScopePeer.deserialize(BinaryReader reader) {
  // Read [BotCommandScopePeer] fields.
  final peer = reader.readObject() as InputPeerBase;

  // Construct [BotCommandScopePeer] object.
  final returnValue = BotCommandScopePeer(peer: peer);

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