A Telegram client for Sailfish OS based on the Telethon API
Licensed under GNU GPLv3
- Telethon is not included (yet), so you need to install it on your Sailfish device. Telethon is under active development and occasionally breaks backward compatibility, so make sure to use the correct version:
devel-su
pip3 install telethon=0.15.5
exit
- Obtain an API ID from Telegram
- Create a file
/home/nemo/.local/share/harbour-mercury/apikey
on the Sailfish device and insert your API ID and API HASH, without the tags<>
(Avoid being root here!):
mkdir -p /home/nemo/.local/share/harbour-mercury
cat <<EOF > /home/nemo/.local/share/harbour-mercury/apikey
api_id <ID>
api_hash <HASH>
EOF
- Run Mercury using SailfishOS SDK, or copy and run manually:
- Copy the folders
TgClient
andqml
to/usr/share/harbour-mercury/
on your SFOS device (requires root)
cd /home/nemo/Downloads
git clone https://github.com/chstem/harbour-mercury.git
devel-su
mkdir /usr/share/harbour-mercury
cd /home/nemo/Downloads/harbour-mercury/
cp -r TgClient qml /usr/share/harbour-mercury/
exit
- Run Mercury:
sailfish-qml harbour-mercury
- Optionally, install
harbour-mercury_noarch.desktop
as/usr/share/applications/harbour-mercury.desktop
and install theicons
under/usr/share/icons/hicolor/<resolution>/apps/
- The connection to the Telegram servers is AES encrypted. If available,
libssl.so
will be used, otherwise a pure Python AES implementation serves as fallback. However, on mobile processors, this severely slows down network speed. If you experience slow download speed, make sure OpenSSL is installed:
devel-su
pkcon install openssl
I choose the name because it nicely connects a couple of things:
- Mercury is a messenger in roman mythology
- Mercurial is a version control system written in Python
- being a scientist, I like the connection to the chemical element and planet