mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Allow integer-only session name and hash for the example
This commit is contained in:
parent
153cbfd350
commit
06db6c3823
|
@ -25,10 +25,10 @@ if __name__ == '__main__':
|
||||||
# Load the settings and initialize the client
|
# Load the settings and initialize the client
|
||||||
settings = load_settings()
|
settings = load_settings()
|
||||||
client = InteractiveTelegramClient(
|
client = InteractiveTelegramClient(
|
||||||
session_user_id=settings.get('session_name', 'anonymous'),
|
session_user_id=str(settings.get('session_name', 'anonymous')),
|
||||||
user_phone=str(settings['user_phone']),
|
user_phone=str(settings['user_phone']),
|
||||||
api_id=settings['api_id'],
|
api_id=settings['api_id'],
|
||||||
api_hash=settings['api_hash'])
|
api_hash=str(settings['api_hash']))
|
||||||
|
|
||||||
print('Initialization done!')
|
print('Initialization done!')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user