Answer the question
In order to leave comments, you need to log in
Why do I get banned when I register in Telegram via API?
I use the telethon library to interact with the Telegram API.
For registration I use the following code:
from telethon import TelegramClient
import socks
phone = '+телефон'
api_id = 123456 # апи айди
api_hash = 'апи хэш'
session = phone
client = TelegramClient(session, api_id, api_hash, proxy=(socks.SOCKS5, 'ip', 'port',
True, 'login', 'password'))
client.start()
Answer the question
In order to leave comments, you need to log in
They say because of the IP address / because of the proxy. There is no type to this address of trust. Potentially used for spam or malicious activity.
How to avoid telegram blocking when registering via telethon?
Perhaps it.
Try it from your home computer, without a proxy, you will find out if this is the problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question