Вероятно, что надо обратить внимание на allow_updates
https://github.com/eternnoir/pyTelegramBotAPI?tab=...
Вот тут пишут
https://github.com/eternnoir/pyTelegramBotAPI/disc...
и пример рабочий:
import telebot
from telebot.util import update_types
from telebot.types import ChatMemberUpdated
bot = telebot.TeleBot('522895')
@bot.chat_member_handler()
def test_chat_member(chat_member_updated: ChatMemberUpdated):
print(chat_member_updated.new_chat_member.status)
@bot.my_chat_member_handler()
def test_chat_member2(chat_member_updated: ChatMemberUpdated):
print(chat_member_updated.new_chat_member.status)
bot.infinity_polling(none_stop=True, interval=0, allowed_updates=update_types)