mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
fix downloaders
This commit is contained in:
@@ -24,10 +24,13 @@ class Telegram:
|
||||
_event = Event()
|
||||
_bot: telebot.TeleBot = None
|
||||
|
||||
def __init__(self, token: str = None, chat_id: str = None):
|
||||
def __init__(self, token: str, chat_id: str, **kwargs):
|
||||
"""
|
||||
初始化参数
|
||||
"""
|
||||
if not token or not chat_id:
|
||||
logger.error("Telegram配置不完整!")
|
||||
return
|
||||
# Token
|
||||
self._telegram_token = token
|
||||
# Chat Id
|
||||
|
||||
Reference in New Issue
Block a user