Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +2 -2
chatbot/plugins/chat.py
CHANGED
@@ -341,12 +341,12 @@ async def terjemahkan(client, callback):
|
|
341 |
sourcelang="auto",
|
342 |
targetlang=str(targetlang)
|
343 |
)
|
344 |
-
keyboard = create_keyboard()
|
345 |
await callback.edit_message_text(
|
346 |
translation.text,
|
347 |
reply_markup=keyboard
|
348 |
)
|
349 |
-
await callback.answer("Translate Now", False)
|
350 |
except Exception as e:
|
351 |
LOGS.error(f"Exception translate: {str(e)}")
|
352 |
await callback.answer("Server busy try again later", True)
|
|
|
341 |
sourcelang="auto",
|
342 |
targetlang=str(targetlang)
|
343 |
)
|
344 |
+
keyboard = create_keyboard(user_id=int(user_id))
|
345 |
await callback.edit_message_text(
|
346 |
translation.text,
|
347 |
reply_markup=keyboard
|
348 |
)
|
349 |
+
await callback.answer("Translate Updated Now", False)
|
350 |
except Exception as e:
|
351 |
LOGS.error(f"Exception translate: {str(e)}")
|
352 |
await callback.answer("Server busy try again later", True)
|