In one of our last tutorials we have installed WhatsApp on Raspberry. Whatsapp at the moment is definitely the most famous app for messaging services, but there are also many alternatives although little known. One of these is Telegram.

"Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed. Unlike WhatsApp, Telegram is cloud-based and heavily encrypted. As a result, you can access your messages from several devices at once, including tablets and computers, and share an unlimited number of photos, videos and files (doc, zip, mp3, etc) of up to 1,5 GB. Thanks to our multi-data center infrastructure and encryption, Telegram is also faster and way more secure. On top of that, Telegram is free and will stay free — no ads, no subscription fees, forever." From https://telegram.org/

Well, then we try to install it on Raspberry

You need:

a Raspberry Pi B or B+, with the latest version of Raspbian, or our MIcroSD Card 8GB Class 10 Raspbian preinstalled.


Update the packages with

sudo apt-get update
sudo apt-get upgrade

Install libs: readline or libedit, openssl and (if you want to use config) libconfig and liblua. If you do not want to use them pass options --disable-libconfig and --disable-liblua respectively.

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

Clone GitHub Repository

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

Running this command takes a little time and after install is done.

Step 1: Utilization:

Navigate to the folder tg

cd tg


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

The first time we start telegram we must enter the phone number, including land code (for Italy is +39).

You should receive on your phone a sms message with a code, enter it and hit "Enter"

Now we are ready to use telegram, if you send a message from your smartphone you can see it on terminal.

To send a message type

msg Name_Lastname My message from Raspberry

Telegram on Raspberry first message

To send a photo type

send_photo Name_Lastname /folder/photo.jpg

Telegram on Raspberry send photo

Other supported commands are:

msg Text - sends message to this peer
fwd - forward message to user. You can see message numbers starting client with -N
chat_with_peer starts one on one chat session with this peer. /exit or /quit to end this mode.
add_contact - tries to add contact to contact-list by phone
rename_contact - tries to rename contact. If you have another device it will be a fight
mark_read - mark read all received messages with peer
delete_msg - deletes message (not completly, though)
restore_msg - restores delete message. Impossible for secret chats. Only possible short time (one hour, I think) after deletion


send_photo - sends photo to peer
send_video - sends video to peer
send_text - sends text file as plain messages
load_photo/load_video/load_video_thumb/load_audio/load_document/load_document_thumb - loads photo/video/audio/document to download dir
view_photo/view_video/view_video_thumb/view_audio/view_document/view_document_thumb - loads photo/video to download dir and starts system default viewer
fwd_media send media in your message. Use this to prevent sharing info about author of media (though, it is possible to determine user_id from media itself, it is not possible get access_hash of this user)
set_profile_photo - sets userpic. Photo should be square, or server will cut biggest central square part

Group chat options

chat_info - prints info about chat
chat_add_user - add user to chat
chat_del_user - remove user from chat
create_group_chat ... - creates a groupchat with users, use chat_add_user to add more users
chat_set_photo - sets group chat photo. Same limits as for profile photos.


search pattern - searches pattern in messages with peer
global_search pattern - searches pattern in all messages

Secret chat

create_secret_chat - creates secret chat with this user
visualize_key - prints visualization of encryption key. You should compare it to your partner's one
set_ttl - sets ttl to secret chat. Though client does ignore it, client on other end can make use of it
accept_secret_chat - manually accept secret chat (only useful when starting with -E key)

Stats and various info

user_info - prints info about user
history [limit] - prints history (and marks it as read). Default limit = 40
dialog_list - prints info about your dialogs
contact_list - prints info about users in your contact list
suggested_contacts - print info about contacts, you have max common friends
stats - just for debugging
show_license - prints contents of GPLv2
help - prints this help


export_card - print your 'card' that anyone can later use to import your contact
import_card - gets user by card. You can write messages to him after that.


quit - quit
safe_quit - wait for all queries to end then quit

<p>Makefile:48: recipe for target 'objs/interface.o' failed</p><p>while make command this error occures. can anyone help</p>
<p>All the steps worked but: </p><blockquote>bin/telegram-cli -k tg-server.pub</blockquote><p>Then I get:</p><blockquote>Telegram-cli version 1.4.1, Copyright (C) 2013-2015 Vitaly Valtman<br>Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.<br>This is free software, and you are welcome to redistribute it<br>under certain conditions; type `show_license' for details.<br>Telegram-cli uses libtgl version 2.1.0<br>Telegram-cli includes software developed by the OpenSSL Project<br>for use in the OpenSSL Toolkit. (http://www.openssl.org/)<br>I: config dir=[/home/pi/.telegram-cli]<br>&gt; telegram-cli: tgl/mtproto-utils.c:101: BN2ull: Assertion `0' failed.<br>SIGNAL received</blockquote><p>I use a Raspberry Pi 3. Any ideas on how to solve this.<br><br></p><p><br>Ps I initially had an issue with <strong>libjannson</strong>, but on<br><a href="https://www.domoticz.com/wiki/Installing_Telegram_Notification_System" rel="nofollow">https://www.domoticz.com/wiki/Installing_Telegram_...</a> I found how to install the <strong>libjansson</strong>.<br></p>
<p>I found a solution on <a href="https://github.com/vysheng/tg/issues/1070" rel="nofollow">https://github.com/vysheng/tg/issues/1070</a></p><blockquote><br></blockquote><blockquote>Basketeer commented 7 days ago</blockquote><blockquote>I now got the client running by commenting out lines 101 and 115 in tgl/mtproto-utils.c and recompiling it.<br>I know - a bad hack but it works for now ;)<br></blockquote><p><br>So what I did:<br></p><blockquote>cd tg/tgl<br>sudo nano mtproto-utils.c</blockquote><p><strong>static unsigned long long BN2ull (TGLC_bn *b) {</strong><br>if (sizeof (unsigned long) == 8) {<br>return TGLC_bn_get_word (b);<br>} else if (sizeof (unsigned long long) == 8) {</p><p><strong> //assert (0);</strong> // As long as nobody ever uses this code, assume it is broken.</p><p> unsigned long long tmp;<br>/* Here be dragons, but it should be okay due to be64toh */<br>TGLC_bn_bn2bin (b, (unsigned char *) &amp;tmp);<br>return be64toh (tmp);<br>} else {<br>assert (0);<br>}</p><p>}</p><p><strong>static void ull2BN (TGLC_bn *b, unsigned long long val) {</strong><br>if (sizeof (unsigned long) == 8 || val &lt; (1ll &lt;&lt; 32)) {<br>TGLC_bn_set_word (b, val);<br>} else if (sizeof (unsigned long long) == 8) {</p><p><strong> // assert (0);</strong> // As long as nobody ever uses this code, assume it is broken.</p><p> htobe64(val);<br>/* Here be dragons, but it should be okay due to htobe64 */<br>TGLC_bn_bin2bn ((unsigned char *) &amp;val, 8, b);<br>} else {<br>assert (0);<br>}</p><p>}</p>
<p>hello, i have this problem too, but you dont say to run make again ....:) thanks</p><p>so after that we have to run :</p><p>cd ..</p><p>make</p>
<p>thanks it works </p>
<p>It is a very nice instruction, the only problem is that I cannot run python programs using telegram cli, which is unfortunate because I cannot grasp lua syntax.</p>
<p>Hi man, first congratulation for your tutorial, but i have a problem.</p><p>When I write bin/telegram-cli -k tg-server.pub -W</p><p>the program don't ask me for telephone, what can i do??</p><p>Ciao, in primis complimenti per il tutorial, ma ho un problema.</p><p>Quando scrivo bin/telegram-cli -k tg-server.pub -W</p><p>il programma non mi chiede il numero di telefono, cosa posso fare??</p>
<p>Hi all</p><p>I am new to this when i tried to use the make command i got the following error</p><p>No targets specified and no makefile found. Stop</p><p>Any help would be greatl appreciated thanks</p>
<p>Hi, I followed the instructions, but when I run the 'make' command, I get this error. Any suggestions?<br><br>pi@raspberrypi:~/tg $ make<br>make: *** No targets specified and no makefile found. Stop.</p>
<p>Simple instruction how to run Telegram on rpi:</p><p>https://eltechs.com/run-telegram-on-raspberry-pi/</p>
<p>I'M Stuckkkk!!!!!!!</p><p>Everyything works fine till 1St step i.e message is sent manually with commands</p><p>but while sending the message automatically I'm getting an error which says:</p><p>FAIL: 38: can not parse arg #1</p><p>&gt; safe_quit</p><p>&gt; &gt; All done. Exit</p><p>any soln to this??</p><p>thank u</p>
<p>Hello, you may try like that...</p><p>#!/bin/bash </p><p>to=$1 </p><p>msg=$2 </p><p>tgpath=/home/pi/tg </p><p>cd ${tgpath} </p><p>${tgpath}/bin/telegram-cli -k tg-server.pub -W -e &quot;msg $to $msg&quot;</p>
<p>It worked! Starting a Lua script (all through SSH) so I can message my Raspberry Pi in the middle of the day and receive an intelligent response. To run a Lua script asynchronously, with Telegram, replace `bin/telegram-cli -k tg-server.pub -W` with `bin/telegram-cli -k tg-server.pub -W -s script_name.lua`</p>
<p>hey how did u manage to send message automatically??can u help me out??</p>
<p>Hi there, I was able to do all the above steps. However, I am trying to send a picture from a mobile to the raspberry pi. Any idea how I will be able to see the photo? Which folder will the photo be saved in. Please help! Thanks !</p>
<p>Thank you this is awesome. Had some problems with access, but used &quot;sudo&quot; and then after some do-overs it worked - thank you</p>
<p>BTW - I am running this on the QENU - emulator</p>
<p>very good.</p>
<p>I can't even get beyond installation because I get an error:<br><br>pi@raspberrypi ~/tg $ ./configure &amp;&amp; make<br>checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... no<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking for sqrt in -lm... yes<br>checking for library containing clock_gettime... -lrt<br>checking for library containing backtrace... none required<br>checking for event_base_new in -levent... yes<br>checking how to run the C preprocessor... gcc -E<br>checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking event2/event.h usability... yes<br>checking event2/event.h presence... yes<br>checking for event2/event.h... yes<br>checking for pkg-config... /usr/bin/pkg-config<br>checking whether compiling and linking against OpenSSL works... yes<br>checking if zlib is wanted... yes<br>checking for inflateEnd in -lz... yes<br>checking zlib.h usability... yes<br>checking zlib.h presence... yes<br>checking for zlib.h... yes<br>checking for rl_save_prompt in -lreadline... yes<br>checking for libconfig... enabled<br>checking for config_init in -lconfig... yes<br>checking for liblua... enabled<br>checking for lua... /usr/bin/lua<br>checking if /usr/bin/lua is a Lua interpreter... yes<br>checking for lua version... 5.2<br>checking for lua platform... unknown<br>checking for lua script directory... ${prefix}/share/lua/5.2<br>checking for lua module directory... ${exec_prefix}/lib/lua/5.2<br>checking if LUA_VERSION is defined... yes<br>checking lua.h usability... no<br>checking lua.h presence... no<br>checking for lua.h... no<br>checking lualib.h usability... no<br>checking lualib.h presence... no<br>checking for lualib.h... no<br>checking lauxlib.h usability... no<br>checking lauxlib.h presence... no<br>checking for lauxlib.h... no<br>checking luaconf.h usability... no<br>checking luaconf.h presence... no<br>checking for luaconf.h... no<br>checking for Lua headers in... /usr/include/lua5.2<br>checking lua.h usability... yes<br>checking lua.h presence... yes<br>checking for lua.h... yes<br>checking lualib.h usability... yes<br>checking lualib.h presence... yes<br>checking for lualib.h... yes<br>checking lauxlib.h usability... yes<br>checking lauxlib.h presence... yes<br>checking for lauxlib.h... yes<br>checking luaconf.h usability... yes<br>checking luaconf.h presence... yes<br>checking for luaconf.h... yes<br>checking for Lua header version... 5.2<br>checking if Lua header version matches 5.2... yes<br>checking if LUA_VERSION is defined... yes<br>checking for library containing exp... none required<br>checking for library containing dlopen... -ldl<br>checking for library containing lua_load... -llua5.2<br>checking for python... enabled<br>checking for python build information... <br>checking for python3.4... no<br>checking for python3.3... no<br>checking for python3.2... python3.2<br>checking for main in -lpython3.2... no<br>checking for main in -lpython3.2m... no<br>checking for main in -lpython3.2mu... no<br>checking for python3.1... no<br>checking for python3... python3<br>checking for main in -lpython3... no<br>checking for main in -lpython3m... no<br>checking for main in -lpython3mu... no<br>checking for python2.7... python2.7<br>checking for main in -lpython2.7... yes<br> results of the Python check:<br> Binary: python2.7<br> Library: python2.7<br> Include Dir: /usr/include/python2.7<br>checking for libjansson... enabled<br>checking for json_array_set_new in -ljansson... no<br>configure: error: No libjansson found. Try --disable-json<br><br>Can you offer any help?</p>
<p>you can try..<br><br>./configure --disable-python<br><br>and then..<br><br>./configure --disable-python --disable-json</p><p>and the last, type 'make'</p><p>is it work?</p>
<p>Hai! <br>it's great. and i success to install telegram on my raspi. but, i still wondering. my raspi has a GPS Module. and i wanna send my location from my raspi to other friends. but, i don't know what is the command for send the current location? any one can help? thanks :)</p>
<p>Hi!</p><p>Great stuff! I managed to send myself a message with this. However, when I go to step 2 something weird happens. It seems like it cannot parse the argument anymore for some reason. I also tried to use to user number (see second image), but this didnt work either and I got a AUTH_KEY_UNREGISTERED error. So I assume something went wrong with authorization of my number. But it does work when I try to send a message the &quot;regular&quot; (step1) way. Does anyone have the same issue or does someone know what is causing this and how I can solve it?</p><p>Great!</p><p>Thanks</p>
<p>Just a heads up if you're here planning to mess around with this: the TG conveniently opens up a TCP server, with the command line option -P. Thank you for this great instructable!</p>
<p>hi</p><p>i got:</p><p>pi@raspberrypi ~/tg $ make<br>make: *** No targets specified and no makefile found. Stop.</p><p>pls help</p>
<p>The problem is you don't have compiler so configure script does not generate the Makefile properly.</p><p>Try </p><p>sudo apt-get install gcc build-essential</p>
<p>now its:</p><p>~/tg $ -bash:<strong> bin/telegram-cli</strong>: No such file or directory</p><p>-bash: -bash:: command not found</p><p>tnx</p>
<p>Check that bin/telegram-cli exists</p>
<p>Hi, in my case it does not exist... what to do then?</p><p>Love to hear from you, and thanks in advance.</p><p>Kind regards</p>
<p>hey guys <br>i have a problem in install telegram... make command doesnt work for me....i have some problem with configure command too...i use rpi2 with lastest version noobs... <br>this is my /.configure log:</p><p>pi@raspberrypi ~/tg $ ./configure &amp;&amp; make <br>checking for gcc... gcc <br>checking whether the C compiler works... yes <br>checking for C compiler default output file name... a.out <br>checking for suffix of executables... <br>checking whether we are cross compiling... no <br>checking for suffix of object files... o <br>checking whether we are using the GNU C compiler... yes <br>checking whether gcc accepts -g... yes <br>checking for gcc option to accept ISO C89... none needed <br>checking for sqrt in -lm... yes <br>checking for library containing clock_gettime... -lrt <br>checking for library containing backtrace... none required <br>checking for event_base_new in -levent... yes <br>checking how to run the C preprocessor... gcc -E <br>checking for grep that handles long lines and -e... /bin/grep <br>checking for egrep... /bin/grep -E <br>checking for ANSI C header files... yes <br>checking for sys/types.h... yes <br>checking for sys/stat.h... yes <br>checking for stdlib.h... yes <br>checking for string.h... yes <br>checking for memory.h... yes <br>checking for strings.h... yes <br>checking for inttypes.h... yes <br>checking for stdint.h... yes <br>checking for unistd.h... yes <br>checking event2/event.h usability... yes <br>checking event2/event.h presence... yes <br>checking for event2/event.h... yes <br>checking for pkg-config... /usr/bin/pkg-config <br>checking whether compiling and linking against OpenSSL works... yes <br>checking if zlib is wanted... yes <br>checking for inflateEnd in -lz... yes <br>checking zlib.h usability... yes <br>checking zlib.h presence... yes <br>checking for zlib.h... yes <br>checking for rl_save_prompt in -lreadline... yes <br>checking for libconfig... enabled <br>checking for config_init in -lconfig... yes <br>checking for liblua... enabled <br>checking for lua... /usr/bin/lua <br>checking if /usr/bin/lua is a Lua interpreter... yes <br>checking for lua version... 5.2 <br>checking for lua platform... unknown <br>checking for lua script directory... ${prefix}/share/lua/5.2 <br>checking for lua module directory... ${exec_prefix}/lib/lua/5.2 <br>checking if LUA_VERSION is defined... yes <br>checking lua.h usability... no <br>checking lua.h presence... no <br>checking for lua.h... no <br>checking lualib.h usability... no <br>checking lualib.h presence... no <br>checking for lualib.h... no <br>checking lauxlib.h usability... no <br>checking lauxlib.h presence... no <br>checking for lauxlib.h... no <br>checking luaconf.h usability... no <br>checking luaconf.h presence... no <br>checking for luaconf.h... no <br>checking for Lua headers in... /usr/include/lua5.2 <br>checking lua.h usability... yes <br>checking lua.h presence... yes <br>checking for lua.h... yes <br>checking lualib.h usability... yes <br>checking lualib.h presence... yes <br>checking for lualib.h... yes <br>checking lauxlib.h usability... yes <br>checking lauxlib.h presence... yes <br>checking for lauxlib.h... yes <br>checking luaconf.h usability... yes <br>checking luaconf.h presence... yes <br>checking for luaconf.h... yes <br>checking for Lua header version... 5.2 <br>checking if Lua header version matches 5.2... yes <br>checking if LUA_VERSION is defined... yes <br>checking for library containing exp... none required <br>checking for library containing dlopen... -ldl <br>checking for library containing lua_load... -llua5.2 <br>checking for libjansson... enabled <br>checking for json_array_set_new in -ljansson... yes <br>checking progname... default <br>checking execinfo.h usability... yes <br>checking execinfo.h presence... yes <br>checking for execinfo.h... yes <br>checking fcntl.h usability... yes <br>checking fcntl.h presence... yes <br>checking for fcntl.h... yes <br>checking malloc.h usability... yes <br>checking malloc.h presence... yes <br>checking for malloc.h... yes <br>checking netdb.h usability... yes <br>checking netdb.h presence... yes <br>checking for netdb.h... yes <br>checking for stdlib.h... (cached) yes <br>checking for string.h... (cached) yes <br>checking for unistd.h... (cached) yes <br>checking arpa/inet.h usability... yes <br>checking arpa/inet.h presence... yes <br>checking for arpa/inet.h... yes <br>checking mach/mach.h usability... no <br>checking mach/mach.h presence... no <br>checking for mach/mach.h... no <br>checking netinet/in.h usability... yes <br>checking netinet/in.h presence... yes <br>checking for netinet/in.h... yes <br>checking sys/file.h usability... yes <br>checking sys/file.h presence... yes <br>checking for sys/file.h... yes <br>checking sys/socket.h usability... yes <br>checking sys/socket.h presence... yes <br>checking for sys/socket.h... yes <br>checking termios.h usability... yes <br>checking termios.h presence... yes <br>checking for termios.h... yes <br>checking for size_t... yes <br>checking for uid_t in sys/types.h... yes <br>checking for inline... inline <br>checking for stdlib.h... (cached) yes <br>checking for GNU libc compatible malloc... yes <br>checking for stdlib.h... (cached) yes <br>checking for GNU libc compatible realloc... yes <br>checking for alarm... yes <br>checking for endpwent... yes <br>checking for memset... yes <br>checking for memmove... yes <br>checking for mkdir... yes <br>checking for select... yes <br>checking for socket... yes <br>checking for strdup... yes <br>checking for strndup... yes <br>checking for uname... yes <br>checking for __builtin_bswap32... yes <br>configure: creating ./config.status <br>config.status: creating Makefile <br>config.status: creating config.h <br>config.status: config.h is unchanged <br>gcc -I. -I. -I./tgl -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/lua5.2 -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF dep/loop.d -MQ objs/loop.o -o objs/loop.o loop.c <br>loop.c: In function &lsquo;write_dc&rsquo;: <br>loop.c:350:3: error: &lsquo;struct tgl_dc&rsquo; has no member named &lsquo;port&rsquo; <br>loop.c:351:21: error: &lsquo;struct tgl_dc&rsquo; has no member named &lsquo;ip&rsquo; <br>loop.c:353:3: error: &lsquo;struct tgl_dc&rsquo; has no member named &lsquo;ip&rsquo; <br>Makefile:49: recipe for target 'objs/loop.o' failed <br>make: *** [objs/loop.o] Error 1</p>
<p>Nice instructable! But when i run the command bin/telegram-cli -k tg-server.pub -W it givee me an error saying auth_key_id should be null</p>
<p>If you want run ANY command safely by Telegram in RaspberryPi or any Linux system I have just published 'Obedience'</p><p>Test it!</p><p>https://github.com/GuillermoPena/obedience</p>
<p>When I run MAKE i get the following error messages, can someone give me some hints on what may be wrong and why??</p><p>/usr/src/tg/tgl/tgl-timers.c:43: undefined reference to `event_new'</p><p>collect2: ld returned 1 exit status</p><p>Makefile:52: recipe for target 'bin/telegram-cli' failed</p><p>make: *** [bin/telegram-cli] Error 1</p>
<p>Please Help , after i &quot;Make&quot; it just stop here . and no more run . <br><br>gcc -I. -I. -g -O2 -I/usr/local/include -I/usr/include -I/usr/include -I/usr/in lude/lua5.2 -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC - quote ./tgl -c -MP -MD -MF dep/auto/auto.d -MQ objs/auto/auto.o -o objs/auto/aut .o auto/auto.c</p>
<p>It takes time around 15-20 mins or sometimes more than that.. Try running &quot;make clean&quot; and then running &quot;make&quot; again. </p>
<p>I try on Galileo as it is not debian so that i am facing problem in installing libraries </p><p>sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make</p><p>for this any alternative things please tell me </p><p>opkg install lebreadline-dev i found but other are unknown packages for Intel IOT so please tell me can it externaly add is it possible</p>
<p>Great! but the automatic script wont work :(</p>
<p>Hi thanks for this! Is there any way to logout? there is no command in the &quot;help&quot;..</p>
<p>Thanks for the great tutorial, everything is working fine, except when i try to send a message with the script</p><p>The message is prompted to early i guess.</p><p>I: config dir=[/home/pi/.telegram-cli]<br>&gt; msg Test_User TestMessage<br>&gt; safe_quit<br>User Test User updated photo<br>User Telegram updated photo</p><p>It's above all the user lines and when I see your example it's underneath and then quiting.</p><p>Any idea how to delay prompting the message?</p><p>Rgds</p><p>Bart</p>
<p>Thanks for the guide! trying to follow it i'm stuck at step 2. My output looks a bit different than yours and the message just isn't sent. Here how it looks like.<br>Any help would be appreciated!</p>
<p>me too are locked there, the program doesn't ask for the telephone number to register.</p>
<p>I have tested the tutorial with 2015-01-31-raspbian.img and telegram asked me the number. Try to wait a few seconds without typing anything after the command <em>bin/telegram-cli -k tg-server.pub -W</em></p>
<p>tested but still nothing:</p><p> bin/telegram-cli -k tg-server.pub -W</p><p>Telegram-cli version 1.2.0, Copyright (C) 2013-2015 Vitaly Valtman</p><p>Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.</p><p>This is free software, and you are welcome to redistribute it</p><p>under certain conditions; type `show_license' for details.</p><p>Telegram-cli uses libtgl version 1.2.0</p><p>I: config dir=[/home/pi/.telegram-cli]</p><p>[/home/pi/.telegram-cli] created</p><p>[/home/pi/.telegram-cli/downloads] created</p><p>&gt;</p><p>and here it does nothing</p>
<p>SOLVED MY PROBLEM!</p><p>if the program doesn't ask for your telephone number I suggest to run the program with: telegram -k /etc/telegram/tg.pub -W -vvvv, so you are able to see thee dirty work....</p><p>In my case I had problem connecting to the server, but when I changed from one internet provider to another, the normal behavior returned.</p>
<p>after I was able to register the telephone number with the alternative connection the program works on my normal connection too.</p>
Hi, I suggest to pass by and try the lua script (see https://www.instructables.com/id/Raspberry-remote-control-with-Telegram/) . It worked for me!
<p>but you didn't specify any telephone number?</p>
<p>yes, I used my own telephone number.</p>

About This Instructable




More by emmeshop:Roast Coffee With Artisan and Phidgets Raspberry datalogger with Mysql Highcharts  Remote control with Raspberry Pi and Phidget WebService 
Add instructable to: