7
dispatcher.add_handler(ChatMemberHandler(welcomeFilter, ChatMemberHandler.CHAT_MEMBER), group=WELCOME_GROUP)
There is no response anyone join the group or left the group why?(Member is hide)
Ptb version - 13.5
Because the group parameter of the handler is not what you think about… It’s the priority of the update to be received, if the update matches the filter of two handlers with the same group, the first one will be issued. You can change the group of the handler so your update can be handled by multiple handlers.
Have you added chat_member on the allowed_updates?
Where to add that?
Why are you using ptb version 13.5? Latest version is 20.5. Even latest non-asyncio version is 13.15
Ohh sorry printing mistake I am using 13.15 By the way If I update 13.5 to 20.5 it's getting many error
Here to add? updater.start_polling(allowed_updates=Update.ALL_TYPES, timeout=15, read_latency=4, drop_pending_updates=True) telethn.run_until_disconnected()
Already added
Yes - as described in the docs: https://docs.python-telegram-bot.org/en/v13.15/telegram.ext.updater.html?highlight=allowed_updates
What do you need "WELCOME_GROUP" for?
I HAVE REMOVED THAT NOW
Yeah, ikr. Was asking again just to make sure.
No need to scream
You should ask in the ptb group ¯\_(ツ)_/¯
ChatMemberUpdated python-telegram-bot documentation for this class: telegram.ChatMemberUpdated Telegram's official Bot API documentation has more info about ChatMemberUpdated.
No the real question is: is the bot admin of that group?
Yes bot is admin in that group
Обсуждают сегодня