vysheng / tg

telegram-cli
GNU General Public License v2.0
6.45k stars 1.53k forks source link

How to login with my phone number #1554

Open hollysheep opened 5 years ago

hollysheep commented 5 years ago

Hi,

i've installed telegram cli on my raspberry pi with raspbian stretch. i changed "assert" to "//assert" in the file "tgl/mtproto-utils.c" and used this

./configure --disable-openssl

because ./configure results in an error. then i run make. after that i run

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

and the gives my this

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
I: config dir=[/home/pi/.telegram-cli]
>

when i enter something nothing happens, but after 10 or 20 sec it works. i tried adding my phone number here i different variations: with + at the beginning and without, with 0 between the country code and the phone number and with 0. always i get the error

FAIL: 38: can not find command

Paulchen232 commented 5 years ago

You do not need to log in. Write get_self to see who you are.

hollysheep commented 5 years ago

OK, works, thanks.

cy2201 commented 5 years ago

I have this problem with freezing, too. The problem is that the cpu runs on 100%. I read somewhere about disabling more than just openssl to solve this freezing problem but I forget it.

Paulchen232 commented 5 years ago

@qwertz22 This issues has no freezing.