Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +6 -7
chatbot/plugins/chat.py
CHANGED
@@ -686,17 +686,16 @@ def anonymous_user(user_id: int = None):
|
|
686 |
)
|
687 |
return keyboard
|
688 |
|
689 |
-
@Client.on_callback_query(filters.regex("^response_(\d+)$"))
|
690 |
async def response_call(client, callback):
|
691 |
-
user_id = int(callback.matches[0].
|
692 |
keyboard = InlineKeyboardMarkup(
|
693 |
[
|
694 |
[
|
695 |
-
InlineKeyboardButton(f"
|
696 |
-
InlineKeyboardButton(f"
|
697 |
-
InlineKeyboardButton(f"
|
698 |
-
InlineKeyboardButton(f"
|
699 |
-
InlineKeyboardButton(f"πΎ", callback_data=f"memory_{user_id}"),
|
700 |
]
|
701 |
]
|
702 |
)
|
|
|
686 |
)
|
687 |
return keyboard
|
688 |
|
689 |
+
@Client.on_callback_query(filters.regex("^response_(\d+)_(\w+)$"))
|
690 |
async def response_call(client, callback):
|
691 |
+
user_id, chat = int(callback.matches[0].groups()
|
692 |
keyboard = InlineKeyboardMarkup(
|
693 |
[
|
694 |
[
|
695 |
+
InlineKeyboardButton(f"π", url=f"https://t.me/{chat}"),
|
696 |
+
InlineKeyboardButton(f"ποΈ", callback_data=f"menutools_{int(user_id)}"),
|
697 |
+
InlineKeyboardButton(f"βΎοΈ", callback_data=f"trmulti_{int(user_id)}"),
|
698 |
+
InlineKeyboardButton(f"πΎ", callback_data=f"memory_{int(user_id)}"),
|
|
|
699 |
]
|
700 |
]
|
701 |
)
|