refactor: remove unused imports

An object has been imported but is not used anywhere in the file.
It should either be used or the import should be removed.
This commit is contained in:
deepsource-autofix[bot]
2024-05-01 16:40:20 +00:00
committed by Abhi
parent a16c7b8d56
commit b3c86802c4
8 changed files with 6 additions and 9 deletions

View File

@@ -19,11 +19,11 @@ import asyncio
from datetime import datetime
import humanize
from pyrogram import Client, enums, filters
from pyrogram import Client, filters
from pyrogram.types import Message
from utils.misc import modules_help, prefix
from utils.scripts import import_library, ReplyCheck
from utils.scripts import ReplyCheck
# Variables
AFK = False

View File

@@ -18,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from pyrogram import Client, ContinuePropagation, enums, errors, filters
from pyrogram import Client, ContinuePropagation, errors, filters
from pyrogram.types import (
InputMediaAudio,
InputMediaDocument,

View File

@@ -12,7 +12,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from pyrogram import Client
from pyrogram import enums as enums
from pyrogram import filters
from pyrogram.types import Message

View File

@@ -9,7 +9,7 @@ import hashlib
import os
import requests
from pyrogram import Client, enums, filters
from pyrogram import Client, filters
from pyrogram.types import Message
from utils.misc import modules_help, prefix

View File

@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from pyrogram import Client, enums, errors, filters
from pyrogram import Client, errors, filters
from pyrogram.types import Message
from utils.db import db

View File

@@ -29,7 +29,6 @@ from pyrogram.types import Message
from utils.db import db
from utils.misc import modules_help, prefix
from textwrap import dedent
auth_hashes = db.get("core.sessionkiller", "auths_hashes", [])

View File

@@ -15,7 +15,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import base64
import os
from io import BytesIO
import requests

View File

@@ -2,7 +2,7 @@ import re
from datetime import datetime, timedelta
from typing import Dict, Union
from pyrogram import Client, enums
from pyrogram import Client
from pyrogram.errors import (
ChatAdminRequired,
PeerIdInvalid,