From 4701b852bde1f0541c303e93fea8a3f6c1524a0b Mon Sep 17 00:00:00 2001 From: Yan Khachko Date: Tue, 9 Feb 2021 11:38:51 +0000 Subject: [PATCH] Update chat_type_filter.py --- examples/chat_type_filter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/chat_type_filter.py b/examples/chat_type_filter.py index 08bb1858..1224e3f1 100644 --- a/examples/chat_type_filter.py +++ b/examples/chat_type_filter.py @@ -22,8 +22,8 @@ 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") # propagate message to the next handler @@ -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")