mirror of
https://github.com/artemium428/first-commenting-bot.git
synced 2026-09-15 16:46:19 +00:00
Compare commits
3 commits
1a8056e0c5
...
ac6027a3fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac6027a3fd | ||
|
|
72f82e2579 | ||
|
|
c9b3df20e2 |
2 changed files with 3 additions and 1 deletions
|
|
@ -28,11 +28,13 @@ def create_dispatcher(config: Config) -> Dispatcher:
|
|||
|
||||
@router.message(F.chat.id == config.discussion_chat_id, FromLinkedChannel())
|
||||
async def on_channel_post(message: Message) -> None:
|
||||
await asyncio.sleep(5)
|
||||
try:
|
||||
await message.reply(
|
||||
config.comment_text,
|
||||
parse_mode=ParseMode.HTML,
|
||||
link_preview_options=LinkPreviewOptions(is_disabled=True),
|
||||
disable_notification=True,
|
||||
)
|
||||
except Exception:
|
||||
logger.exception(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
🔶 Чтобы бот не удалил ваш комментарий, нужно быть участником чата (<a href="https://t.me/+jOrJ6bZCfKNkMjMy">вот ссылка</a>).
|
||||
|
||||
<strong>Вся информация про нашу команду — на сайте.</strong> Нажмите, почитайте!
|
||||
<strong>Вся информация про нашу команду — на сайте.</strong>
|
||||
|
||||
🐺 <a href="http://428th.com">428th.com</a>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue