Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +3 -2
chatbot/plugins/chat.py
CHANGED
@@ -752,7 +752,8 @@ async def terjemahkan(client, callback):
|
|
752 |
return await callback.answer("translate history not found")
|
753 |
|
754 |
for translations in data_tr["translate_history"]:
|
755 |
-
|
|
|
756 |
translate_result += translations.get("text", "no translation")
|
757 |
break
|
758 |
|
@@ -763,7 +764,7 @@ async def terjemahkan(client, callback):
|
|
763 |
)
|
764 |
keyboard = create_keyboard(
|
765 |
user_id=user_id,
|
766 |
-
uuid_str=
|
767 |
chat=data_tr.get("channel_username", "RendyProjects"),
|
768 |
is_menu=data_tr.get("is_channel_photo", False)
|
769 |
)
|
|
|
752 |
return await callback.answer("translate history not found")
|
753 |
|
754 |
for translations in data_tr["translate_history"]:
|
755 |
+
LOGS.info(f"Update translation: {translations}")
|
756 |
+
if translations.get("uuid") == uuidstr:
|
757 |
translate_result += translations.get("text", "no translation")
|
758 |
break
|
759 |
|
|
|
764 |
)
|
765 |
keyboard = create_keyboard(
|
766 |
user_id=user_id,
|
767 |
+
uuid_str=uuidstr,
|
768 |
chat=data_tr.get("channel_username", "RendyProjects"),
|
769 |
is_menu=data_tr.get("is_channel_photo", False)
|
770 |
)
|