InlineMenu class

This object represents a Inline Keyboard with the action to be done.

Implemented types

Constructors

InlineMenu({String? name})
Constructs a InlineMenu

Properties

hashCode int
The hash code for this object.
no setterinherited
inlineKeyboard List<List<InlineKeyboardButton>>
List of rows of the keyboard
getter/setter pairoverride-getter
name String
Name of the menu
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callbackGame(String text, CallbackGame game) InlineMenu
Add a Callback Game button to the last row
login(String text, String url, {String? forwardText, String? botUsername, bool? requestWriteAccess}) InlineMenu
Add a Login button to the last row
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pay(String text) InlineMenu
Add a Pay button to the last row
row() InlineMenu
Add a new row to the keyboard
switchInlineQuery(String text, String query) InlineMenu
Add a Switch Inline Query button to the last row
switchInlineQueryChosenChat(String text, SwitchInlineQueryChosenChat switchInlineQueryChosenChat) InlineMenu
Add a Switch Inline Query Chosen Chat button to the last row
switchInlineQueryCurrentChat(String text, String query) InlineMenu
Add a Switch Inline Query Current Chat button to the last row
text(String text, Handler handler, {required String data, ScopeOptions? options}) InlineMenu
Add new item to the last row
toJson() Map<String, dynamic>
Converts the object to a JSON object
override
toString() String
A string representation of this object.
inherited
url(String text, String url) InlineMenu
Add a URL button to the last row
webApp(String text, String url) InlineMenu
Add a Web App button to the last row

Operators

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