pytg icon indicating copy to clipboard operation
pytg copied to clipboard

Remove dependency of tg-cli

Open efaisal opened this issue 11 years ago • 7 comments

Perhaps by creating C library of telegram protocol

efaisal avatar Feb 24 '14 02:02 efaisal

that would be great, another interesting idea would be integrating python as script language into tg-cli .)

bastianh avatar Feb 26 '14 14:02 bastianh

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 .

efaisal avatar Feb 27 '14 08:02 efaisal

was there any progress made in this direction?

shlomiku avatar Oct 16 '14 06:10 shlomiku

any updates on this issue/suggestion?

avinassh avatar Jan 26 '15 16:01 avinassh

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.

luckydonald avatar May 18 '15 15:05 luckydonald

Thank you very much @luckydonald :smiley:

This was one huge update :+1:

avinassh avatar May 18 '15 15:05 avinassh

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.

luckydonald avatar Aug 27 '15 12:08 luckydonald