From 122fb78198f76816fbfb9d17b8b1c6b9f996c527 Mon Sep 17 00:00:00 2001 From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Thu, 23 Dec 2021 16:18:15 +0530 Subject: [PATCH] update new members message to include chatmemberbot.py --- Code-snippets.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Code-snippets.md b/Code-snippets.md index c8cdd33..3d7c5e8 100644 --- a/Code-snippets.md +++ b/Code-snippets.md @@ -514,6 +514,7 @@ def add_group(update: Update, context: CallbackContext): add_group_handle = MessageHandler(Filters.status_update.new_chat_members, add_group) dispatcher.add_handler(add_group_handle) ``` +Note that service messages about non-bot users joining the chat are removed from large groups. You can get the new members message by following the [chatmemberbot.py example](https://github.com/python-telegram-bot/python-telegram-bot/tree/master/examples#chatmemberbotpy). --- #### Exclude forwarded channel posts in discussion groups from MessageHandlers