Ok
Browse files- chatbot/plugins/chat.py +3 -2
chatbot/plugins/chat.py
CHANGED
@@ -1645,6 +1645,7 @@ async def chatbot_talk(client: Client, message: Message):
|
|
1645 |
)
|
1646 |
response_data = await chat_session.send_message(query_base)
|
1647 |
output = response_data.text
|
|
|
1648 |
if len(output) > 4096:
|
1649 |
text_parts = split_message(output)
|
1650 |
for part in text_parts:
|
@@ -1652,7 +1653,7 @@ async def chatbot_talk(client: Client, message: Message):
|
|
1652 |
else:
|
1653 |
keyboard_like = create_keyboard(
|
1654 |
user_id=message.from_user.id,
|
1655 |
-
uuid_str=
|
1656 |
)
|
1657 |
await message.reply_text(
|
1658 |
output,
|
@@ -1660,7 +1661,7 @@ async def chatbot_talk(client: Client, message: Message):
|
|
1660 |
reply_markup=keyboard_like
|
1661 |
)
|
1662 |
translation_entry = {
|
1663 |
-
"uuid":
|
1664 |
"text": output,
|
1665 |
"timestamp": dt.now().isoformat()
|
1666 |
}
|
|
|
1645 |
)
|
1646 |
response_data = await chat_session.send_message(query_base)
|
1647 |
output = response_data.text
|
1648 |
+
uuid_code = str(uuid.uuid4())[:8]
|
1649 |
if len(output) > 4096:
|
1650 |
text_parts = split_message(output)
|
1651 |
for part in text_parts:
|
|
|
1653 |
else:
|
1654 |
keyboard_like = create_keyboard(
|
1655 |
user_id=message.from_user.id,
|
1656 |
+
uuid_str=uuid_code
|
1657 |
)
|
1658 |
await message.reply_text(
|
1659 |
output,
|
|
|
1661 |
reply_markup=keyboard_like
|
1662 |
)
|
1663 |
translation_entry = {
|
1664 |
+
"uuid": uuid_code,
|
1665 |
"text": output,
|
1666 |
"timestamp": dt.now().isoformat()
|
1667 |
}
|