MessageEntityBotCommand.deserialize constructor

MessageEntityBotCommand.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessageEntityBotCommand.deserialize(BinaryReader reader) {
  // Read [MessageEntityBotCommand] fields.
  final offset = reader.readInt32();
  final length = reader.readInt32();

  // Construct [MessageEntityBotCommand] object.
  final returnValue = MessageEntityBotCommand(
    offset: offset,
    length: length,
  );

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