Skip to content

Istom1n/telepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telepy — Python wrapper for TDLib

Latest Release Build Status
Telepy is incredible, ultra-fast, PEP8-compliant wrapper for TDLib, a cross-platform, fully functional Telegram client.

How to install

Just download in from PyPi: pip install telepy — work in process

How to use

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()

TODO

  • 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