Update utils.py

pull/144/head
Who? 2025-05-19 21:55:53 +07:00 committed by GitHub
parent 52b457f8dc
commit c501fcd3ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -187,6 +187,15 @@ class Utils(InlineUnit):
web_app=WebAppInfo(button["data"]),
)
]
elif "copy" in button:
line += [
InlineKeyboardButton(
button["text"],
copy = button["copy"]
)
]
elif "switch_inline_query_current_chat" in button:
line += [
InlineKeyboardButton(
@ -751,6 +760,7 @@ class Utils(InlineUnit):
or "input" in button
or "data" in button
or "action" in button
or "copy" in button
for button in row
)
for row in buttons