mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-13 15:23:19 +00:00
fixes in copyText keyboard buttons
This commit is contained in:
1 parent
479923a04a
commit
636c01acb9
4 files changed
+39
-8
No files matched your search
+15
-3
@@ -93,14 +93,26 @@ inline fun InlineKeyboardRowBuilder.loginButton(
|
||||
) = add(LoginURLInlineKeyboardButton(text, loginUrl))
|
||||
|
||||
/**
|
||||
* Creates and put [LoginURLInlineKeyboardButton]
|
||||
* Creates [CopyTextButton]
|
||||
*
|
||||
* @see inlineKeyboard
|
||||
* @see InlineKeyboardBuilder.row
|
||||
*/
|
||||
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
||||
text: String
|
||||
) = add(CopyTextButton(text))
|
||||
text: String,
|
||||
data: CopyTextButtonData
|
||||
) = add(CopyTextButton(text, data))
|
||||
|
||||
/**
|
||||
* Creates [CopyTextButton]
|
||||
*
|
||||
* @see inlineKeyboard
|
||||
* @see InlineKeyboardBuilder.row
|
||||
*/
|
||||
inline fun InlineKeyboardRowBuilder.copyTextButton(
|
||||
text: String,
|
||||
data: String
|
||||
) = copyTextButton(text, CopyTextButtonData(data))
|
||||
|
||||
/**
|
||||
* Creates and put [SwitchInlineQueryCurrentChatInlineKeyboardButton]
|
||||
|
||||
Reference in new issue
Block a user