mirror of https://github.com/coddrago/Heroku
[+] fixed button text
parent
6a1804aa21
commit
a4f7495eb1
|
@ -125,14 +125,14 @@ class Utils(InlineUnit):
|
||||||
|
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
url=button["url"],
|
url=button["url"],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
elif "callback" in button:
|
elif "callback" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
callback_data=button["_callback_data"],
|
callback_data=button["_callback_data"],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
@ -168,7 +168,7 @@ class Utils(InlineUnit):
|
||||||
elif "input" in button:
|
elif "input" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
switch_inline_query_current_chat=button["_switch_query"]
|
switch_inline_query_current_chat=button["_switch_query"]
|
||||||
+ " ",
|
+ " ",
|
||||||
)
|
)
|
||||||
|
@ -176,14 +176,14 @@ class Utils(InlineUnit):
|
||||||
elif "data" in button:
|
elif "data" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
callback_data=button["data"],
|
callback_data=button["data"],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
elif "web_app" in button:
|
elif "web_app" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
web_app=WebAppInfo(button["data"]),
|
web_app=WebAppInfo(button["data"]),
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
@ -191,7 +191,7 @@ class Utils(InlineUnit):
|
||||||
elif "copy" in button:
|
elif "copy" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
copy_text=CopyTextButton(
|
copy_text=CopyTextButton(
|
||||||
text=button["copy"]
|
text=button["copy"]
|
||||||
)
|
)
|
||||||
|
@ -201,7 +201,7 @@ class Utils(InlineUnit):
|
||||||
elif "switch_inline_query_current_chat" in button:
|
elif "switch_inline_query_current_chat" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
switch_inline_query_current_chat=button[
|
switch_inline_query_current_chat=button[
|
||||||
"switch_inline_query_current_chat"
|
"switch_inline_query_current_chat"
|
||||||
],
|
],
|
||||||
|
@ -210,7 +210,7 @@ class Utils(InlineUnit):
|
||||||
elif "switch_inline_query" in button:
|
elif "switch_inline_query" in button:
|
||||||
line += [
|
line += [
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=button["text"],
|
text=str(button["text"]),
|
||||||
switch_inline_query_current_chat=button[
|
switch_inline_query_current_chat=button[
|
||||||
"switch_inline_query"
|
"switch_inline_query"
|
||||||
],
|
],
|
||||||
|
|
|
@ -503,7 +503,7 @@ class Web:
|
||||||
markup = InlineKeyboardMarkup()
|
markup = InlineKeyboardMarkup()
|
||||||
markup.add(
|
markup.add(
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
"🔓 Authorize user",
|
text="🔓 Authorize user",
|
||||||
callback_data=f"authorize_web_{token}",
|
callback_data=f"authorize_web_{token}",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue