mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
add webAppButton overload with url as string
This commit is contained in:
parent
955e14f67c
commit
350b77f6ff
@ -140,3 +140,14 @@ inline fun InlineKeyboardRowBuilder.webAppButton(
|
|||||||
text: String,
|
text: String,
|
||||||
webApp: WebAppInfo
|
webApp: WebAppInfo
|
||||||
) = add(WebAppInlineKeyboardButton(text, webApp))
|
) = add(WebAppInlineKeyboardButton(text, webApp))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates and put [WebAppInlineKeyboardButton]. Please, remember that this button is available in private chats only
|
||||||
|
*
|
||||||
|
* @see inlineKeyboard
|
||||||
|
* @see InlineKeyboardBuilder.row
|
||||||
|
*/
|
||||||
|
inline fun InlineKeyboardRowBuilder.webAppButton(
|
||||||
|
text: String,
|
||||||
|
url: String
|
||||||
|
) = webAppButton(text, WebAppInfo(url))
|
||||||
|
Loading…
Reference in New Issue
Block a user