Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +1 -1
chatbot/plugins/chat.py
CHANGED
@@ -268,7 +268,7 @@ async def memory_updated(client, callback):
|
|
268 |
|
269 |
@Client.on_callback_query(filters.regex("^tr_(\d+)_(\w+)$"))
|
270 |
async def terjemahkan(client, callback):
|
271 |
-
user_id, targetlang = callback.matches[0].
|
272 |
try:
|
273 |
if user_id == 0:
|
274 |
return await callback.answer("Server busy try again later", True)
|
|
|
268 |
|
269 |
@Client.on_callback_query(filters.regex("^tr_(\d+)_(\w+)$"))
|
270 |
async def terjemahkan(client, callback):
|
271 |
+
user_id, targetlang = callback.matches[0].groups()
|
272 |
try:
|
273 |
if user_id == 0:
|
274 |
return await callback.answer("Server busy try again later", True)
|