td icon indicating copy to clipboard operation
td copied to clipboard

Message Delay Issue

Open juzi-code opened this issue 8 months ago • 7 comments

In my development process, I've noticed that messages from public channels are consistently delayed for a long time before being received, while messages from private channels are received without any delay. Do you know why this happens? Are there any solutions?

juzi-code avatar May 07 '25 16:05 juzi-code

Messages in supergroups and channels aren't supposed to be received immediately by regular users. They can be received with different delay by different users.

levlam avatar May 07 '25 19:05 levlam

So, the issue of message delays lasting up to 40 seconds that I'm encountering cannot be solved, right? However, both the Telegram desktop client and the Telegram app do not have such exaggerated delays; this issue only occurs when using the Telegram API.

This content was translated by OpenAI.

juzi-code avatar May 08 '25 07:05 juzi-code

All apps have the same behavior and same expected delays.

levlam avatar May 08 '25 08:05 levlam

So, the issue of message delays lasting up to 40 seconds that I'm encountering cannot be solved, right? However, both the Telegram desktop client and the Telegram app do not have such exaggerated delays; this issue only occurs when using the Telegram API.

This content was translated by OpenAI.

maybe start using openchat?

ghost avatar May 17 '25 13:05 ghost

I have the same problem. The messages are always delayed by three seconds to a minute, has anyone any workaround with this?

jazzu21 avatar Oct 07 '25 16:10 jazzu21

All apps have the same behavior and same expected delays.

This been happening consistently, a 10 seconds delay between the desktop app and my tdlib code, I have both open at the same time.

Also how do you suggest we use the API to build things, if it's not guaranteed real-time ?

AZZOUZ007 avatar Dec 05 '25 17:12 AZZOUZ007

Also how do you suggest we use the API to build things, if it's not guaranteed real-time?

You must use a bot account if you need updates delivered as fast as possible. Otherwise, you are limited by physical constraints.

levlam avatar Dec 08 '25 10:12 levlam