Telepy is incredible, ultra-fast, PEP8-compliant wrapper for TDLib, a cross-platform, fully functional Telegram client.
Just download in from PyPi:
pip install telepy — work in process
import sys
from telepy import Telepy
tg = Telepy()
while True:
e = tg.td_receive()
# If client is closed, we need to destroy it and create new client
if e and e['@type'] is 'updateAuthorizationState' and\
e['authorization_state']['@type'] is 'authorizationStateClosed':
break
# Handle an incoming update or an answer to a previously sent request
print(event)
sys.stdout.flush()
- Compiled TDLib on all available platforms
- Function for download library binari of TDLib for your OS
- Setuo Travis
- Add to PyPi
- Add to Conda
- Write documentation
- Write tests for complete coverage