Instalando TELEGRAM

Instalación

Para instalar en Raspbian ejecutamos desde la terminal:

git clone –recursive https://github.com/vysheng/tg.git && cd tg

instalamos lo siguiente:

sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev

Ejecutamos el archivo de configuración y copilamos el programa:

./configure

da el error: configure: error: no libevent found

instalamos libevent-dev

sudo apt-get install libevent-dev

sudo apt-get install libjansson*

volvemos a ejecutar

./configure

Ejecutamos

make

da el error:

make: *** No rule to make target ‘tgl/scheme.tl’, needed by ‘auto/scheme.tl’. Alto.

Se ha solucionado poniendo – – recursive en:

git clone –recursive https://github.com/vysheng/tg.git && cd tg

Simplemente debemos ejecutar en la terminal:

./telegram -k tg.pub

bin/telegram-cli -k tg-server.pub -W

da lo siguiente:

pi@raspberrypi:~/tg $ sudo bin/telegram-cli -k tg-server.pub -W

change_user_group: can’t find the user telegramd to switch to

Telegram-cli version 1.4.1, Copyright (C) 2013-2015 Vitaly Valtman

Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license’.

This is free software, and you are welcome to redistribute it

under certain conditions; type `show_license’ for details.

Telegram-cli uses libtgl version 2.1.0

Telegram-cli includes software developed by the OpenSSL Project

for use in the OpenSSL Toolkit. (http://www.openssl.org/)

I: config dir=[/root/.telegram-cli]

[/root/.telegram-cli] created

[/root/.telegram-cli/downloads] created

> telegram-cli: tgl/mtproto-utils.c:101: BN2ull: Assertion `0′ failed.

SIGNAL received