mirror of
https://github.com/artemium428/first-commenting-bot.git
synced 2026-09-15 16:46:19 +00:00
Wait 5 seconds before replying to a channel post.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
72f82e2579
commit
ac6027a3fd
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue