switchInlineChosen method
Adds an inline query button for chosen chat type to the current row.
Implementation
InlineKeyboard switchInlineChosen(
String text, {
String query = "",
bool? allowUserChats,
bool? allowBotChats,
bool? allowGroupChats,
bool? allowChannelChats,
String? iconCustomEmojiId,
StyleType? style,
}) {
return add(
InlineKeyboardButton(
text: text,
switchInlineQueryChosenChat: SwitchInlineQueryChosenChat(
query: query,
allowUserChats: allowUserChats,
allowBotChats: allowBotChats,
allowGroupChats: allowGroupChats,
allowChannelChats: allowChannelChats,
),
iconCustomEmojiId: iconCustomEmojiId,
style: style,
),
);
}