Wait 5 seconds before replying to a channel post.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Artemii Peretiachenko 2026-08-31 11:25:05 +02:00
parent 72f82e2579
commit ac6027a3fd

View file

@ -28,6 +28,7 @@ def create_dispatcher(config: Config) -> Dispatcher:
@router.message(F.chat.id == config.discussion_chat_id, FromLinkedChannel()) @router.message(F.chat.id == config.discussion_chat_id, FromLinkedChannel())
async def on_channel_post(message: Message) -> None: async def on_channel_post(message: Message) -> None:
await asyncio.sleep(5)
try: try:
await message.reply( await message.reply(
config.comment_text, config.comment_text,