I
I
Ilkhomjon Matazimov2020-08-13 15:27:41
Python
Ilkhomjon Matazimov, 2020-08-13 15:27:41

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()


I'm using the latest proxy, but I still got banned. I just tried it before without a proxy, and I thought that it was a proxy, but it turned out not to be the case.

Outcome:
Am I doing everything right? Please correct if not

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekssamos, 2020-08-13
@alekssamos

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 question

Ask a Question

731 491 924 answers to any question