vysheng / tg

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

Success failed #1602

Open BlueTree1234 opened 5 years ago

BlueTree1234 commented 5 years ago

Hi,

till last month I could use Telegram on my Raspberry and communicate with him very good. Still I use the same commands, have the same Raspberry and so on but no I can't log in. The error message is:

telegram-cli: tgl/mtproto-client.c:1206: mpc_on_get_config: Assertion `success‘ failed. SIGNAL received

Does anybody face the same problem or can help me? Greetings

Paulchen232 commented 5 years ago

I do not know what the programmer thought with assert (success) at this point. The best thing to do is show the config file with cat ~/.telegram-cli/config. If necessary, you can also turn off the debug mode and run make again. Or comment out assert (success) in tgl/mtproto-client.c.

BlueTree1234 commented 5 years ago

Thanks, Paulchen!

After run make again I could just log in with the addition -q

I registered the same number again and now I can use Telegram again

And by the way. How can I turn off the debug mode?

Paulchen232 commented 5 years ago

In Makefile change CFLAGS=-g -O2 in #CFLAGS=-g -O2 then do make