mirror of
https://github.com/DerrtSML/qbittorent_bot.git
synced 2025-10-25 20:10:08 +03:00
Update bot.py
This commit is contained in:
parent
73f41f8ffd
commit
034b925f5b
4
bot.py
4
bot.py
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user