Description
Checklist
- I added a descriptive title
- I searched for other issues and couldn't find a solution or duplication
- I already searched in Google and didn't find any good information or help
Describe the bug
Uploader.echo - INFO -
pyrogram.dispatcher - ERROR - 'Message' object is not callable
Traceback (most recent call last):
File "/Uploader/button.py", line 40, in youtube_dl_call_back
with open(save_ytdl_json_path, "r", encoding="utf8") as f:
FileNotFoundError: [Errno 2] No such file or directory: './DOWNLOADS/1889968310gAdNb.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/Uploader/callbacks.py", line 36, in button
await youtube_dl_call_back(bot, update)
File "/Uploader/button.py", line 43, in youtube_dl_call_back
await update.message(f"error: {e}")
TypeError: 'Message' object is not callable
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Deploy In [e.g. locally, heroku, digital ocean]
- Version [e.g. v.2.0.0]
Additional context
Add any other context about the problem here.