diff --git a/heroku/inline/utils.py b/heroku/inline/utils.py index ab0bf6e..c55ec49 100644 --- a/heroku/inline/utils.py +++ b/heroku/inline/utils.py @@ -125,14 +125,14 @@ class Utils(InlineUnit): line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), url=button["url"], ) ] elif "callback" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), callback_data=button["_callback_data"], ) ] @@ -168,7 +168,7 @@ class Utils(InlineUnit): elif "input" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), switch_inline_query_current_chat=button["_switch_query"] + " ", ) @@ -176,14 +176,14 @@ class Utils(InlineUnit): elif "data" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), callback_data=button["data"], ) ] elif "web_app" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), web_app=WebAppInfo(button["data"]), ) ] @@ -191,7 +191,7 @@ class Utils(InlineUnit): elif "copy" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), copy_text=CopyTextButton( text=button["copy"] ) @@ -201,7 +201,7 @@ class Utils(InlineUnit): elif "switch_inline_query_current_chat" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), switch_inline_query_current_chat=button[ "switch_inline_query_current_chat" ], @@ -210,7 +210,7 @@ class Utils(InlineUnit): elif "switch_inline_query" in button: line += [ InlineKeyboardButton( - text=button["text"], + text=str(button["text"]), switch_inline_query_current_chat=button[ "switch_inline_query" ], diff --git a/heroku/web/root.py b/heroku/web/root.py index 7666797..033b9e0 100644 --- a/heroku/web/root.py +++ b/heroku/web/root.py @@ -503,7 +503,7 @@ class Web: markup = InlineKeyboardMarkup() markup.add( InlineKeyboardButton( - "🔓 Authorize user", + text="🔓 Authorize user", callback_data=f"authorize_web_{token}", ) )