MenuButton class abstract

This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands or MenuButtonWebApp or MenuButtonDefault.

Implementers

Constructors

Creates a new MenuButton object.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MenuButtonType
Type of the MenuButton.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a MenuButton to a Map for JSON encoding.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create(Map<String, dynamic> json) MenuButton
Creates a new MenuButton object. This method decides which MenuButton subclass to use based on the type field.