Signed-off-by: anas <e.anastayyar@gmail.com>
This commit is contained in:
anas 2021-08-28 20:27:50 +03:00
parent 8c87fa1999
commit e058baaca5

View File

@ -2,7 +2,7 @@ import requests
from telegram.ext import CommandHandler
from telegram import InlineKeyboardMarkup
from bot import Interval, INDEX_URL, BUTTON_FOUR_NAME, BUTTON_FOUR_URL, BUTTON_FIVE_NAME, BUTTON_FIVE_URL, BUTTON_SIX_NAME, BUTTON_SIX_URL, BLOCK_MEGA_FOLDER, BLOCK_MEGA_LINKS, VIEW_LINK, aria2, get_client
from bot import Interval, INDEX_URL, BUTTON_FOUR_NAME, BUTTON_FOUR_URL, BUTTON_FIVE_NAME, BUTTON_FIVE_URL, BUTTON_SIX_NAME, BUTTON_SIX_URL, BLOCK_MEGA_FOLDER, BLOCK_MEGA_LINKS, VIEW_LINK, aria2
from bot import dispatcher, DOWNLOAD_DIR, download_dict, download_dict_lock, SHORTENER, SHORTENER_API, TAR_UNZIP_LIMIT
from bot.helper.ext_utils import fs_utils, bot_utils
from bot.helper.ext_utils.shortenurl import short_url
@ -55,8 +55,6 @@ class MirrorListener(listeners.MirrorListeners):
def clean(self):
try:
aria2.purge()
get_client().torrents_delete(torrent_hashes="all", delete_files=True)
get_client().auth_log_out()
Interval[0].cancel()
del Interval[0]
delete_all_messages()