Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

111 #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

111 #23

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand Down
1 change: 0 additions & 1 deletion bot/utubebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down