R
R
Roman Semenov2021-07-08 21:11:33
Python
Roman Semenov, 2021-07-08 21:11:33

Why is Telegram api blocking client.get_entity()?

I have a client working via telethon. Once every few minutes, I receive a message from the channel, and I use client.entity() to find out the name of the sender from whom the message came.
Recently, after a dozen calls to this function, Telegram began to block me, and give me the following error:

A wait of ... seconds is required (caused by ResolveUsernameRequest)

With what it can be connected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-07-09
@5Roman17

You're obviously spamming requests too often. Are you sure you need the sender's name?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question