mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 03:30:09 +03:00
Check for environ session name
This commit is contained in:
parent
fccd208ca2
commit
3a63788b52
|
@ -9,7 +9,7 @@ from os import environ
|
|||
# or even hardcode them (not recommended)
|
||||
|
||||
def main():
|
||||
session_name = 'session'
|
||||
session_name = environ.get('TG_SESSION','session')
|
||||
user_phone = environ['TG_PHONE'],
|
||||
client = TelegramClient(session_name,
|
||||
int(environ['TG_API_ID']),
|
||||
|
|
Loading…
Reference in New Issue
Block a user