Skip to content

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

@nnhieu97

Description

@nnhieu97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions