UpdateBotMenuButton.deserialize constructor
UpdateBotMenuButton.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory UpdateBotMenuButton.deserialize(BinaryReader reader) {
// Read [UpdateBotMenuButton] fields.
final botId = reader.readInt64();
final button = reader.readObject() as BotMenuButtonBase;
// Construct [UpdateBotMenuButton] object.
final returnValue = UpdateBotMenuButton(
botId: botId,
button: button,
);
// Now return the deserialized [UpdateBotMenuButton].
return returnValue;
}