пробую трединг
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dv 2026-03-15 23:57:00 +03:00
parent a8723bb3ee
commit 282b066fcf

View file

@ -10,6 +10,7 @@
from __future__ import annotations from __future__ import annotations
import logging import logging
import threading
import config import config
import database import database
@ -79,7 +80,12 @@ def recreate_post(
old = database.get_message_data(task_id) old = database.get_message_data(task_id)
if old: if old:
notifier.delete(old["message_id"]) threading.Thread(
target=notifier.delete,
args=(old["message_id"],),
daemon=True,
name=f"delete-{old['message_id']}",
).start()
try: try:
message_id = notifier.send(full_text, keyboard) message_id = notifier.send(full_text, keyboard)