BotCommandScopePeerAdmins.deserialize constructor

BotCommandScopePeerAdmins.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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