InputBotInlineMessageGame.deserialize constructor
InputBotInlineMessageGame.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory InputBotInlineMessageGame.deserialize(BinaryReader reader) {
// Read [InputBotInlineMessageGame] fields.
final flags = reader.readInt32();
final hasReplyMarkupField = (flags & 4) != 0;
final replyMarkup =
hasReplyMarkupField ? reader.readObject() as ReplyMarkupBase : null;
// Construct [InputBotInlineMessageGame] object.
final returnValue = InputBotInlineMessageGame(replyMarkup: replyMarkup);
// Now return the deserialized [InputBotInlineMessageGame].
return returnValue;
}