mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #504 from luck20yan/patch-1
Update examples/chat_type_filter.py
This commit is contained in:
commit
675bd1c53f
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ dp = Dispatcher(bot)
|
|||
@dp.message_handler(chat_type=[ChatType.PRIVATE, ChatType.CHANNEL])
|
||||
async def send_welcome(message: types.Message):
|
||||
"""
|
||||
This handler will be called when user sends `/start` or `/help` command
|
||||
This handler will be called when user sends message in private chat or channel
|
||||
"""
|
||||
await message.reply("Hi!\nI'm hearing your messages in private chats and channels")
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ async def send_welcome(message: types.Message):
|
|||
@dp.message_handler(chat_type=ChatType.PRIVATE)
|
||||
async def send_welcome(message: types.Message):
|
||||
"""
|
||||
This handler will be called when user sends `/start` or `/help` command
|
||||
This handler will be called when user sends message in private chat
|
||||
"""
|
||||
await message.reply("Hi!\nI'm hearing your messages only in private chats")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue