I
I
Ivan2022-01-26 11:37:59
API
Ivan, 2022-01-26 11:37:59

Can a Telegram client write messages to a bot, but not receive messages from the bot?

Hello! Faced such a situation.

There is a bot. The bot has protection against frequent messages. If you write often (more often than 300 ms), then the bot blocks sending messages for 5 seconds and displays a message saying that you are blocked for 5 seconds.

A certain user registered and began to write often to the bot, just bombarding him with messages.
The user was successfully registered and found in the bot database.

However, judging by the logs, the bot cannot send him a message that he is temporarily blocked for 5 seconds.
When submitting, the bot gets an error TELEGRAM: 403 Forbidden: bot can't initiate conversation with a user

How can this be? I'm confused that the client cannot receive a message from the bot?
Or can a cart be used without a cart?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
inworkl, 2022-01-26
@inworkl

Perhaps the user has stopped the Bot, and then the bot will not be able to reach him until the user resumes correspondence with him /start

I
Ivan, 2022-01-26
@skapunker

By the way, when a user blocks a bot, the error 403 bot is blocked by the user usually pops up.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question