This commit is contained in:
user committed 2025-03-01 04:05:41 +03:00
1 parent 952c45f4c2
commit 7c947f51b6
4 files changed
+14 -14

No files matched your search

+5 -5
View File
@@ -6,7 +6,7 @@ from base58 import b58encode
from sqlalchemy import and_, desc
from tonsdk.boc import Cell
from tonsdk.utils import Address
from app.core._config import CLIENT_TELEGRAM_BOT_USERNAME
from app.core._blockchain.ton.platform import platform
from app.core._blockchain.ton.toncenter import toncenter
from app.core._utils.send_status import send_status
@@ -221,9 +221,9 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
message_type='notification',
reply_markup=get_inline_keyboard([
[{
'text': user.translated('home_button'),
'callback_data': 'home'
}]
'text': user.translated('viewTrackAsClient_button'),
'url': f"https://t.me/{CLIENT_TELEGRAM_BOT_USERNAME}?start=C{encrypted_stored_content.cid.serialize_v2()}"
}],
])
)
@@ -231,7 +231,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
and_(
KnownTelegramMessage.chat_id == user.telegram_id,
KnownTelegramMessage.type == 'hint',
KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash}),
KnownTelegramMessage.meta['encrypted_content_hash'].astext == encrypted_stored_content.hash,
KnownTelegramMessage.deleted == False
)
).all():