fix messages error

This commit is contained in:
user 2025-02-28 15:42:29 +03:00
parent bf2caeae42
commit 5a523f4d66
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
user_uploader_wrapper = Wrapped_CBotChat(memory._telegram_bot, chat_id=user.telegram_id, user=user, db_session=session)
for hint_message in session.query(KnownTelegramMessage).filter(
and_(
KnownTelegramMessage.user_id == user.id,
KnownTelegramMessage.chat_id == user.telegram_id,
KnownTelegramMessage.message_type == 'hint',
KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash})
)