Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: type object 'CustomFilters' has no attribute 'sudo' #170

Open
nnhieu97 opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@nnhieu97
Copy link

nnhieu97 commented Jan 8, 2025

Hello, I can't use rclone commands like view, delete rclone.conf file, rclone remote management command /rcfm

rcmltb | Traceback (most recent call last):
rcmltb |   File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
rcmltb |     await handler.callback(self.client, *args)
rcmltb |   File "/usr/src/app/bot/modules/rcfm.py", line 38, in handle_myfiles
rcmltb |     if await is_rclone_config(user_id, message):
rcmltb |   File "/usr/src/app/bot/helper/ext_utils/rclone_utils.py", line 50, in is_rclone_config
rcmltb |     if CustomFilters.sudo(user_id):
rcmltb | AttributeError: type object 'CustomFilters' has no attribute 'sudo'

I checked and realized that the class CustomFilters declared in /bot/helper/telegram_helper/filters.py does not have a method sudo().
Please help me fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant