MessagesSetBotGuestChatResult.deserialize constructor

MessagesSetBotGuestChatResult.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesSetBotGuestChatResult.deserialize(BinaryReader reader) {
  // Read [MessagesSetBotGuestChatResult] fields.
  final queryId = reader.readInt64();
  final result = reader.readObject() as InputBotInlineResultBase;

  // Construct [MessagesSetBotGuestChatResult] object.
  final returnValue = MessagesSetBotGuestChatResult(
    queryId: queryId,
    result: result,
  );

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