mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Move InteractiveClient to examples/ (and stop shipping it to pip)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
import traceback
|
||||
|
||||
from telethon.interactive_telegram_client import (InteractiveTelegramClient,
|
||||
print_title)
|
||||
from telethon_examples.interactive_telegram_client \
|
||||
import InteractiveTelegramClient
|
||||
|
||||
|
||||
def load_settings(path='api/settings'):
|
||||
@@ -40,6 +40,5 @@ if __name__ == '__main__':
|
||||
type(e), e, traceback.format_exc()))
|
||||
|
||||
finally:
|
||||
print_title('Exit')
|
||||
print('Thanks for trying the interactive example! Exiting...')
|
||||
client.disconnect()
|
||||
print('Thanks for trying the interactive example! Exiting...')
|
||||
|
Reference in New Issue
Block a user