pytg
pytg copied to clipboard
Remove dependency of tg-cli
Perhaps by creating C library of telegram protocol
that would be great, another interesting idea would be integrating python as script language into tg-cli .)
My vision for pytg is for it to turn into a library that support telegram protocol and hopefully people would find it useful to implement telegram client using whatever networking framework of their choice - twisted, gevent, etc.
On Wed, Feb 26, 2014 at 10:13 PM, Bastian Hoyer [email protected]:
that would be great, another interesting idea would be integrating python as script language into tg-cli .)
Reply to this email directly or view it on GitHubhttps://github.com/efaisal/pytg/issues/3#issuecomment-36128496 .
was there any progress made in this direction?
any updates on this issue/suggestion?
I just took over maintaining pytg. I had a look on this before, but I need support from someone who Already did a python module in C, or someone who knows about the protocol in depth. I have not the resources to do that, but am happy to help out/Work together with someone on this.
Thank you very much @luckydonald :smiley:
This was one huge update :+1:
There is the idea of using the bot-api, as well as the cli's own python connection, tgl.
This is happening in the development branch.
Bot api
When complete someday, this might make it independent. Big problem right now with the bot api is, that it lacks some really basic features, like downloading files. (Seriously! There is no way to get a file!)
Tgl (CLI's own pytg)
Problem I face there is, that all that stuf is happening in a callback, and I can't figure out how to get the back-called function to execute the main loop one loop.