This commit is contained in:
user committed 2024-04-05 21:50:06 +03:00
1 parent e63e040692
commit 6405baf251
3 files changed
+38 -33

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ async def license_index_loop(memory, platform_found: bool, seqno: int) -> [bool,
chat_wrap = Wrapped_CBotChat(CLIENT_TELEGRAM_API_KEY, chat_id=user.telegram_id, db_session=session, user=user)
content = session.query(StoredContent).filter_by(id=action.content_id).first()
if (datetime.now() - action.updated) > timedelta(minutes=5):
if (datetime.now() - action.created) > timedelta(minutes=5):
if action.telegram_message_id:
await chat_wrap.delete_message(action.telegram_message_id)