Tooruchan / Telegram-CAPTCHA-Bot

基于Pyrogram的Telegram加群验证机器人开源实现。本仓库已停止更新,请移步至: https://github.com/Tooruchan/Telegram-CAPTCHA-bot-pyrogram
https://github.com/Tooruchan/Telegram-CAPTCHA-bot-pyrogram
GNU Affero General Public License v3.0
77 stars 18 forks source link

人工通过和人工拒绝没反应 #10

Closed zlhdd108 closed 4 years ago

zlhdd108 commented 4 years ago

点击人工通过和人工拒绝的时候没有反映 image ERROR:pyrogram.client.ext.dispatcher:'List' object has no attribute 'chat_members' Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/pyrogram/client/ext/dispatcher.py", line 198, in update_worker await handler.callback(self.client, *args) File "/root/Telegram-CAPTCHA-bot/main.py", line 107, in challenge_callback for admin in admins.chat_members AttributeError: 'List' object has no attribute 'chat_members'

Tooruchan commented 4 years ago

Fixed by remove an unused parameter in pyrogram 0.16.0: https://github.com/Tooruchan/Telegram-CAPTCHA-Bot/commit/1be3644899b6c0c4d8ddc2ecd83d6533d228789c