mirror of https://github.com/coddrago/Heroku
[+] fixed button text
parent
6a1804aa21
commit
a4f7495eb1
|
@ -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"
|
||||
],
|
||||
|
|
|
@ -503,7 +503,7 @@ class Web:
|
|||
markup = InlineKeyboardMarkup()
|
||||
markup.add(
|
||||
InlineKeyboardButton(
|
||||
"🔓 Authorize user",
|
||||
text="🔓 Authorize user",
|
||||
callback_data=f"authorize_web_{token}",
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue