vysheng / tg

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

Ban in telegram #1560

Open ykslol opened 6 years ago

ykslol commented 6 years ago

Hi. Wonderful client, but if i registering account via this CLI, telegram instantly ban this account. If i register account via official clients and then login via this CLI - all is OK.

May be someone know how to resolve this issue. Thanks

Paulchen232 commented 6 years ago

You created a new account at the make command with a number and specified the pin from the SMS or the phone call. And then?

ykslol commented 6 years ago

I use sms code

Paulchen232 commented 6 years ago

What do you see after you started telegram-cli? What is the start command?

ykslol commented 6 years ago

1.phone number:

  1. register (Y/n): 3.first name: 4.last name:
  2. code ('CALL') for phone code):

After the code was entered, i logged in and after ~15-60 sec account became banned

Paulchen232 commented 6 years ago

I do not understand. What is your startup code? With me, e.g ~/tg/bin/telegram-cli -C -W -s ~/tg/test.lua -k ~/tg/tg-server.pub

ykslol commented 6 years ago

telegram-cli -W -k server.pub - p profile_2

Paulchen232 commented 6 years ago

In which folder is server.pub? You have this not specified.

Paulchen232 commented 6 years ago

And there is a space between - and p. Is that just a copy error?

ykslol commented 6 years ago

Yes, copy error) Start of telegram-cli: telegram-cli -W -p profile_3 -k /etc/telegram/server.pub

profile_3 is a config directive in ~/.telegram-cli/config file.

profile_3 = { config_directory = "~/.telegram-cli/3"; msg_num = true; };

in ~/.telegram-cli/3 folder after registration creates files for auth. So after first login/registration i can move this folder to another stand and login without use phone number to account.

Paulchen232 commented 5 years ago

Whats your problem? I have think that all going now.

ykslol commented 5 years ago

If i try to registrate account via this client - telegram banned this account. But if i registrate via other client and then login via this cli - all is ok. how can i registrate telegram account via this client without ban? Or may be u know how to registrate account in telegram via linux shell.

Paulchen232 commented 5 years ago

I think I knows to less. How you make the registraten with telegram-cli? I only ?login? with makewith an old registration.

ykslol commented 5 years ago

I started telegram-CLi. Then it ask me for the phone number. I put new phone number for registration. Then it ask me dont i want to registrate new account, i answer yes. Then i pun my first and last name and then i put the code which my phone resieved. After i put the code i logged in and in 1-10 sec telegram ban this account.

Paulchen232 commented 5 years ago

Ok I try this too.

Paulchen232 commented 5 years ago

It works, sorry. I use my Handy number, add "0" and let me call for the Code. My Startcode was "~/tg/bin/telegram-cli -W -s ~/tg/test.lua -k ~/tg/tg-server.pub -p profil1". My Version is 1.4.1. Perhaps you send from telegram-cli ban a picture link or the picture to Telegram username @GoOssi.

ykslol commented 5 years ago

Thanks for investigating. May be if to get the code via call it will sucsessfully registrate account but my target is to registrate many accounts automaticly via this CLI. So to get code via call is not my way, need to get the code via sms only. Iill try this again. And i'll write soon after my investigations

ykslol commented 5 years ago

So i started telegram-Cli, put number, get sms with code and after registration account become deactivated == banned

telegram-cli -W -k /opt/tg/server.pub -p profile_1 -c config -v 4
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/)
 *** 1541531247.280667 adjusting CLOCK_MONOTONIC delta to -0.587536
 *** 1541531247.332554 adjusting CLOCK_MONOTONIC delta to -0.590192
 *** 1541531247.807820 adjusting CLOCK_MONOTONIC delta to 0.543261
 *** 1541531247.826769 adjusting CLOCK_MONOTONIC delta to 0.625269
 *** 1541531248.050743 adjusting CLOCK_MONOTONIC delta to 0.665799
phone number: 8617123624401
register (Y/n): y
first name: John
last name: Johnson
code ('CALL' for phone code): 66499
> 
> 
 *** 1541531335.259072 error for query 'get state' #6620826613667390464: #401 USER_DEACTIVATED
 *** 1541531335.259110 login problem: error #71 (RPC_CALL_FAIL 401: USER_DEACTIVATED)
 *** 1541531335.259128 login failed
 *** 1541531335.259144 login error #71: RPC_CALL_FAIL 401: USER_DEACTIVATED
 *** 1541531335.259160 you can relogin by deleting auth file or running telegram-cli with '-q' flag
Paulchen232 commented 5 years ago

Are you really root? #81

ykslol commented 5 years ago

yes i run cli from root. But if i registrate account via official client and then login via this cli also run from root - login is ok and account not began banned

mmbug commented 5 years ago

did you solve this? i have the same problem

Paulchen232 commented 5 years ago

https://telegram.org/faq_spam

ykslol commented 5 years ago

mmbug, no =( But i found a solution to run multiple instances of TG on PC. Via official client. For now on vps works 8 instances of TG (centos with GUI) registrated on virtual numbers. Not convenient as console cli, but better than nothing.

Nwachimereze1-hub commented 1 month ago

Hi. Wonderful client, but if i registering account via this CLI, telegram instantly ban this account. If i register account via official clients and then login via this CLI - all is OK.

May be someone know how to resolve this issue. Thanks