anasty17 / mirror-leech-telegram-bot

Official Repository: Telegram bot which can download direct links, torrents, nzb, google drive, telegram document, any file/folder from rclone supported clouds, all yt-dlp supported sites and jdownloader supported sites, then upload them to google drive, telegram cloud or to one of rclone supported clouds
https://t.me/mltb_official_channel
GNU General Public License v3.0
3.43k stars 4.76k forks source link

[Bug] error when leech/mirror telegram files "AttributeError: 'str' object has no attribute 'session'" #1673

Closed erickyun closed 9 months ago

erickyun commented 9 months ago

Describe the bug hi @anasty17

When I execute /l or /m on telegram files bot throws error in logs and bot won't download/upload file?

log.txt ``` 2024-01-29 11:17:12,155 - asyncio - ERROR - Task exception was never retrieved future: exception=AttributeError("'str' object has no attribute 'session'")> Traceback (most recent call last): File "/usr/src/app/bot/modules/mirror_leech.py", line 303, in newEvent await TelegramDownloadHelper(self).add_download(reply_to, f"{path}/", session) File "/usr/src/app/bot/helper/mirror_utils/download_utils/telegram_download.py", line 98, in add_download self.session.session = "user" AttributeError: 'str' object has no attribute 'session' ```
anasty17 commented 9 months ago

Fixed