Def welcomeFilter(update: Update, context: CallbackContext): print("Test") WELCOME_GROUP =

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

19 ответов

21 просмотр

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?

Why are you using ptb version 13.5? Latest version is 20.5. Even latest non-asyncio version is 13.15

Яico X
Why are you using ptb version 13.5? Latest version...

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()

Mr Robot
Sure

Already added

『𖤍 Lêɠêɳ̃dẞογ ࿐』➙「🇮🇳」
Here to add? updater.start_polling(allowed_update...

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?

Yeah, ikr. Was asking again just to make sure.

You should ask in the ptb group ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

『𖤍 Lêɠêɳ̃dẞογ ࿐』➙「🇮🇳」
Here to add? updater.start_polling(allowed_update...

ChatMemberUpdated python-telegram-bot documentation for this class: telegram.ChatMemberUpdated Telegram's official Bot API documentation has more info about ChatMemberUpdated.

Похожие вопросы

Карта сайта