Move InteractiveClient to examples/ (and stop shipping it to pip)

This commit is contained in:
Lonami Exo
2017-06-08 14:00:27 +02:00
parent 88f87f6de2
commit a07c7bd0d0
4 changed files with 50 additions and 40 deletions

View File

@@ -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...')