diff --git a/README.md b/README.md index 64de4e3..c8449d8 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ $ source venv/bin/activate **Environment Variables** - `BOT_TOKEN`(Required) - Get your bot token from [Bot Father](https://tx.me/BotFather "Bot Father"). -- `SESSION_NAME`(optional) - Your bot's username. +- `NAME`(optional) - Your bot's username. - `API_ID`(Required) - Your telegram api id, get from [Manage Apps](https://my.telegram.org). - `API_HASH`(Required) - Your telegram api hash, get from [Manage Apps](https://my.telegram.org). - `CLIENT_ID`(Required) - Your google client id. diff --git a/app.json b/app.json index 7e0ef0b..fe5cf61 100644 --- a/app.json +++ b/app.json @@ -9,9 +9,9 @@ "description": "Your Bot token. Get from https://t.me/botfather", "value": "" }, - "SESSION_NAME": { + "NAME": { "description": "Your Bot's username.", - "value": "youtubeitbot", + "value": "youtubeuplsunilbot", "required":false }, "API_ID": { diff --git a/bot/config.py b/bot/config.py index e475a0b..dcfeb09 100644 --- a/bot/config.py +++ b/bot/config.py @@ -5,7 +5,7 @@ class Config: BOT_TOKEN = os.environ.get("BOT_TOKEN") - SESSION_NAME = os.environ.get("SESSION_NAME", ":memory:") + NAME = os.environ.get("NAME", ":memory:") API_ID = int(os.environ.get("API_ID")) diff --git a/bot/utubebot.py b/bot/utubebot.py index 1463988..f7c6af3 100644 --- a/bot/utubebot.py +++ b/bot/utubebot.py @@ -6,7 +6,6 @@ class UtubeBot(Client): def __init__(self): super().__init__( - session_name=Config.SESSION_NAME, bot_token=Config.BOT_TOKEN, api_id=Config.API_ID, api_hash=Config.API_HASH,