debug-load-messages
All checks were successful
deploy / deploy (push) Successful in 1m22s

This commit is contained in:
Untone 2023-10-16 23:05:24 +03:00
parent ca3ed334a9
commit 757bf60e18

View File

@ -42,7 +42,8 @@ async def load_messages(chat_id: str, limit: int = 5, offset: int = 0, ids: Opti
if replies:
messages += await load_messages(chat_id, offset, limit, replies)
except Exception as e:
print(f"Error loading messages for chat {chat_id}: {e}")
import traceback
traceback.print_exc()
return messages