add webAppButton overload with url as string

This commit is contained in:
InsanusMokrassar committed 2022-04-23 12:33:56 +06:00
1 parent 955e14f67c
commit 350b77f6ff
1 file changed
+11
@@ -140,3 +140,14 @@ inline fun InlineKeyboardRowBuilder.webAppButton(
text: String,
webApp: WebAppInfo
) = 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))