每次用户加入频道后获取更新背后是否有解决方法?
我的代码适用于组,但不适用于渠道。
def test(self, bot, update):
print("Inside channel/group")
def run(self):
updater = Updater(BOT_TOKEN)
bot = updater.dispatcher
bot.add_handler(MessageHandler(Filters.status_update.new_chat_members, self.test)) #only works for groups
bot.add_handler(MessageHandler(Filters.all, self.test)) #no update for new member on channel
bot.add_handler(MessageHandler(Filters.update, self.test)) #no update for new member on channel