Update bot.py

This commit is contained in:
DerrtSML 2025-06-23 17:13:34 +03:00 committed by GitHub
parent 73f41f8ffd
commit 034b925f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
bot.py
View File

@ -9,7 +9,7 @@ from telegram.ext import (
CallbackQueryHandler,
ContextTypes,
)
from qbittorrent import Client, APIError
from qbittorrentapi import Client, APIError
# Настройка логирования
logging.basicConfig(
@ -178,4 +178,4 @@ if __name__ == "__main__":
exit(1)
if not all([QBT_HOST, QBT_USERNAME, QBT_PASSWORD]):
logger.warning("QBittorrent connection details (QBT_HOST, QBT_USERNAME, QBT_PASSWORD) are not fully set. Bot will attempt to connect on first use of qBittorrent related commands.")
main()
main()