Reply
Thread Tools
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#91
Here is a compiled cli version with all library support (not tested).

Extract in a tempory folder copy for example to opt and make it executeable.

You will need to install:
libreadline5
libpython3.1
liblua5.1-0

and the additional library from archive (libjansson4, libconfig8, libevent-2.0-5)

http://filehorst.de/d/cndsJAGg

Last edited by Halftux; 2018-01-23 at 19:22.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#92
Originally Posted by Halftux View Post
Here is a compiled cli version ...
This is "No GUI" version?
 

The Following 2 Users Say Thank You to Alexxxl For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#93
Originally Posted by Alexxxl View Post
This is "No GUI" version?
Yes no GUI version cli = command line interface.
It is mainly used with scripts or bots. You can control your phone with scripts triggerd by telegram. Maybe there is also some python gui for it.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Alexxxl's Avatar
Posts: 152 | Thanked: 91 times | Joined on Mar 2013 @ Russia Saratov
#94
Originally Posted by Halftux View Post
Yes no GUI version cli = command line interface.
It is mainly used with scripts or bots. You can control your phone with scripts triggerd by telegram. Maybe there is also some python gui for it.
this is cool!
 

The Following 2 Users Say Thank You to Alexxxl For This Useful Post:
Posts: 45 | Thanked: 80 times | Joined on Jun 2010
#95
consider there's this Telethon library, for Python3. I've briefly tested if it is at all possible to send messages, spending on the subject not much more than ½h, then playing around a bit. The only issue on N9, according to me, is who's going to write the graphical user interface. for the rest, the whole protocol implementation is neatly handled by import telethon, as usual.
Being the library written in pure python, you can think of doing this also on N900, but then I'm not sure there's any other widgets choice but tcl/tk.
 

The Following 2 Users Say Thank You to mfrasca For This Useful Post:
Posts: 45 | Thanked: 80 times | Joined on Jun 2010
#96
Originally Posted by mfrasca View Post
consider there's this Telethon library, for Python3. ...
so, I was a bit overconfident, I had tested it on my desktop, and my desktop is debian 9, with python3.5. Now I have copied the same files I was testing to both my N9 and N900 and I have met several problems, none of which is specific to telethon, but to the library versions on my phones.

the python versions I have are:
N900: 2.5 (stock), 2.7 (community), 3.4 (community)
N9: 2.6 (stock), 3.1 (stock)

user@Maemo:~$ openssl version
OpenSSL 0.9.8zf 19 Mar 2015

user@MeeGo:~$ openssl version
OpenSSL 0.9.8k 25 Mar 2009 (Library: OpenSSL 0.9.8r 8 Feb 2011)

on both systems I have git

1) I don't manage to install pip, on neither system. the error I have is InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail., and this I actually have all over the place, not being able to open any https page.

2) on N9 you need the get-pip for python2.6, which is still available. but it would be nicer if we had python2.7, or we have it and I missed it? but anyhow, I still end with the above error, also in MeeGo.

3) running python3 setup.py build needs setuptools, and I can do apt-get install python3-setuptools on MeeGo, but not on Maemo.

4) the stock python3.1 on MeeGo has so many differences from the python3 used in Telethon, that I gave up after three edits.

as said these aren't exclusively related to Telethon, it's just a plain need to update the systems.

both need a newer OpenSSL library.
is there a newer python3 for meego?
where do we get python3-setuptools for maemo?

Last edited by mfrasca; 2018-05-06 at 14:25.
 

The Following 2 Users Say Thank You to mfrasca For This Useful Post:
Posts: 169 | Thanked: 194 times | Joined on Apr 2012 @ Austria
#97
I would just try to compile Python3-setuptools and maybe Python 3 from sources
 

The Following 3 Users Say Thank You to smatkovi For This Useful Post:
Posts: 45 | Thanked: 80 times | Joined on Jun 2010
#98
are you able to do that? I'm not. I am more productive on application writing.
 

The Following 3 Users Say Thank You to mfrasca For This Useful Post:
aquarium's Avatar
Posts: 11 | Thanked: 15 times | Joined on Feb 2018 @ Milky Way
#99
I think tdlibjson, will be more better.
 

The Following User Says Thank You to aquarium For This Useful Post:
aquarium's Avatar
Posts: 11 | Thanked: 15 times | Joined on Feb 2018 @ Milky Way
#100
Originally Posted by aquarium View Post
I think tdlibjson, will be more better.
I mean this
Attached Images
 
 

The Following User Says Thank You to aquarium For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:12.