BotsGetBotMenuButton.deserialize constructor

BotsGetBotMenuButton.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotsGetBotMenuButton.deserialize(BinaryReader reader) {
  // Read [BotsGetBotMenuButton] fields.
  final userId = reader.readObject() as InputUserBase;

  // Construct [BotsGetBotMenuButton] object.
  final returnValue = BotsGetBotMenuButton(
    userId: userId,
  );

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