You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using UpdateManager to receive updates: Manager = Client.WithUpdateManager(Client_OnUpdate);
My application needs to react to new channel messages as fast as possible, but UpdateNewChannelMessage can be received even 10 minutes after they were posted.
I saw InactivityThreshold property inside UpdateManager, so I changed it to 1 minute: Manager.InactivityThreshold = TimeSpan.FromMinutes(1) and now it receives updates guaranteed every minute.
I'm afraid that if I change that property to 1 second, the account with a bot can be banned.
I also noticed that updates from my test channel with 2 subscribers are received immediately without any delay every time, so this problem occurs only with big channels (200k-600k subscribers).
Can I improve something to make it faster or is it some Telegram limitation?
The text was updated successfully, but these errors were encountered:
On very large groups/channel, it has been observed that the same message may be received with a delay between a full client and WTelegramClient. That is not due to slowness in the library. It's Telegram servers taking the time to dispatch the updates among thousands of members.
According to someone, the priority order when dispatching such updates to group members could be something like this: Replied person > Tagged people > Group Creator > Group admins > Recently active members > Everyone else
So maybe being admin or active poster in the group can help reduce the delay.
Increasing the default PingInterval may have negative effects.
Reducing Manager.InactivityThreshold can help, but if you reduce it too much, you might make the Manager crash as Telegram could reject the many Manager API calls with FLOOD_WAIT_X
wiz0u
changed the title
Is it possible to receive channel updates immediately?
Is it possible to reduce delay receiving channel updates?
Aug 6, 2024
wiz0u
changed the title
Is it possible to reduce delay receiving channel updates?
Is it possible to reduce delay receiving channel messages/updates?
Aug 6, 2024
Hi.
I'm using
UpdateManager
to receive updates:Manager = Client.WithUpdateManager(Client_OnUpdate);
My application needs to react to new channel messages as fast as possible, but
UpdateNewChannelMessage
can be received even 10 minutes after they were posted.I saw
InactivityThreshold
property insideUpdateManager
, so I changed it to 1 minute:Manager.InactivityThreshold = TimeSpan.FromMinutes(1)
and now it receives updates guaranteed every minute.I'm afraid that if I change that property to 1 second, the account with a bot can be banned.
I also noticed that updates from my test channel with 2 subscribers are received immediately without any delay every time, so this problem occurs only with big channels (200k-600k subscribers).
Can I improve something to make it faster or is it some Telegram limitation?
The text was updated successfully, but these errors were encountered: