File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed
Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ Telegram bot to stream videos in telegram voicechat for both groups and channels
6565git clone https://github.com/subinps/VCPlayerBot
6666cd VCPlayerBot
6767pip3 install -r requirements.txt
68- # <Create Variables appropriately>
68+ # <Create Variables appropriately (.env [optional]) >
6969python3 main.py
7070```
7171
Original file line number Diff line number Diff line change 1717try :
1818 import os
1919 import heroku3
20+ from dotenv import load_dotenv
2021 from ast import literal_eval as is_enabled
2122 from pytgcalls .types .input_stream .quality import (
2223 HighQualityVideo ,
3839
3940class Config :
4041 #Telegram API Stuffs
42+ load_dotenv () # load enviroment variables from .env file
4143 ADMIN = os .environ .get ("ADMINS" , '' )
4244 SUDO = [int (admin ) for admin in (ADMIN ).split ()] # Exclusive for heroku vars configuration.
4345 ADMINS = [int (admin ) for admin in (ADMIN ).split ()] #group admins will be appended to this list.
Original file line number Diff line number Diff line change 1+ API_ID = 12345
2+ API_HASH = 0123456789abcdef0123456789abcdef
3+ BOT_TOKEN = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
4+ SESSION_STRING = ABC-DEF1234ghIkl-zyx57W2v1u123ew11_ABC-DEF1234ghIkl-zyx57W2v1u123ew11
5+ CHAT = -10012345678
6+ ADMINS = "1234567890 9876543210"
Original file line number Diff line number Diff line change 1111motor
1212dnspython
1313pytz
14- apscheduler
14+ apscheduler
15+ python-dotenv
You can’t perform that action at this time.
0 commit comments