removed-fix3

This commit is contained in:
Untone 2024-09-26 18:50:13 +03:00
parent 08024e81fc
commit 03db470b76
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,6 @@ async def handle_private(msg, state):
return return
elif text == '/removed': elif text == '/removed':
removed_messages = await get_all_removed(uid) removed_messages = await get_all_removed(uid)
await telegram_api("sendMessage", chat_id=uid, text="\n".join(removed_messages)) await telegram_api("sendMessage", chat_id=uid, text="\n\n".join(removed_messages))
return return
await telegram_api("forwardMessage", from_chat_id=sender.get("id"), message_id=msg.get("id"), chat_id=FEEDBACK_CHAT_ID) await telegram_api("forwardMessage", from_chat_id=sender.get("id"), message_id=msg.get("id"), chat_id=FEEDBACK_CHAT_ID)

View File

@ -16,6 +16,6 @@ async def get_all_removed(uid):
# Fetch the value for each key # Fetch the value for each key
value = await redis.get(key) value = await redis.get(key)
if value: if value:
texts.append(str(value)) texts.append(value.encode('utf-8'))
return texts return texts