Compare commits

..

3 commits

Author SHA1 Message Date
Artemii Peretiachenko
ac6027a3fd Wait 5 seconds before replying to a channel post.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 11:25:05 +02:00
Artemii Peretiachenko
72f82e2579 Drop the extra CTA from the site line in comment text.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 11:19:12 +02:00
Artemii Peretiachenko
c9b3df20e2 Send discussion replies silently so they do not ping with sound.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 11:18:35 +02:00
2 changed files with 3 additions and 1 deletions

View file

@ -28,11 +28,13 @@ 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,
parse_mode=ParseMode.HTML, parse_mode=ParseMode.HTML,
link_preview_options=LinkPreviewOptions(is_disabled=True), link_preview_options=LinkPreviewOptions(is_disabled=True),
disable_notification=True,
) )
except Exception: except Exception:
logger.exception( logger.exception(

View file

@ -6,7 +6,7 @@
🔶 Чтобы бот не удалил ваш комментарий, нужно быть участником чата (<a href="https://t.me/+jOrJ6bZCfKNkMjMy">вот ссылка</a>). 🔶 Чтобы бот не удалил ваш комментарий, нужно быть участником чата (<a href="https://t.me/+jOrJ6bZCfKNkMjMy">вот ссылка</a>).
<strong>Вся информация про нашу команду — на сайте.</strong> Нажмите, почитайте! <strong>Вся информация про нашу команду — на сайте.</strong>
🐺 <a href="http://428th.com">428th.com</a> 🐺 <a href="http://428th.com">428th.com</a>