tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

The updateNewMessage event is not triggered unless you enter the message in the Telegram application and see it. #2924

Closed AktilaCengiz closed 4 months ago

AktilaCengiz commented 4 months ago

Hello everyone, The updateNewMessage event is not triggered unless you enter the message in the Telegram application and see it. At the same time, there is another self bot on the machine and such an event does not occur. I wonder if it can't keep two connections open at the same time from a machine?

levlam commented 4 months ago

Check that you use new enough TDLib version and that you have a few devices in the active device list.

AktilaCengiz commented 4 months ago

I use TDLİB 1.8.9 resim_2024-06-10_141708492

Three different records appear to be open in the account

levlam commented 4 months ago

This is a very old version.

predators46 commented 4 months ago

This is a very old version.

this problem also exists in tdlib version 1.8.30

AktilaCengiz commented 4 months ago

However, there was a problem like this: I did not receive any messages to the normal client. I saw that I received a message from a different account of mine. Then, when I refreshed it, it worked.

benwoniu630353 commented 4 months ago

This problem does exist! And this problem has appeared in the past week, and it did not exist before! The version number we use is 1.8.30, and the situation we encounter is the same as the problem encountered by the questioner above. When joining a new group/channel, there are only two situations to obtain the chatID: 01, log in again by receiving the verification code; 02, when there is a new message sent to the group/channel; 03

levlam commented 4 months ago

It is up to the server, when notify apps about new messages.

benwoniu630353 commented 4 months ago

翻译 You didn't understand the problem we described. Let me rephrase it: Suppose there is a telegram account with a mobile phone number of 123. I log it in to the mobile telegram, and then also log in to the app developed based on tdlib 1.8.30. I follow a channel on telegram on the mobile phone, and then use the app developed by tdlib to get all the chatlists with the current login account 123. At this time, the channel I just followed will not be displayed unless there are new messages sent from the channel!

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: Aliaksei Levin @.> Sent: Monday, June 10, 2024 10:25:02 PM To: tdlib/td @.> Cc: benwoniu630353 @.>; Comment @.> Subject: Re: [tdlib/td] The updateNewMessage event is not triggered unless you enter the message in the Telegram application and see it. (Issue #2924)

It is up to the server, when notify apps about new messages.

― Reply to this email directly, view it on GitHubhttps://github.com/tdlib/td/issues/2924#issuecomment-2158515409, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMHEYQRAX6DUWC2HIH6JEVLZGWZL5AVCNFSM6AAAAABJAZCT2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGUYTKNBQHE. You are receiving this because you commented.Message ID: @.***>

levlam commented 4 months ago

@benwoniu630353 This is still up to the server.

Also, check that you have a few devices in the active device list.

benwoniu630353 commented 4 months ago

4 devices

获取Outlook for Androidhttps://aka.ms/AAb9ysg


From: Aliaksei Levin @.> Sent: Tuesday, June 11, 2024 12:29:32 AM To: tdlib/td @.> Cc: benwoniu630353 @.>; Mention @.> Subject: Re: [tdlib/td] The updateNewMessage event is not triggered unless you enter the message in the Telegram application and see it. (Issue #2924)

@benwoniu630353https://github.com/benwoniu630353 This is still up to the server.

Also, check that you have a few devices in the active device list.

― Reply to this email directly, view it on GitHubhttps://github.com/tdlib/td/issues/2924#issuecomment-2158822866, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMHEYQVUD7JCLWIFTL6FTWTZGXH6ZAVCNFSM6AAAAABJAZCT2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYHAZDEOBWGY. You are receiving this because you were mentioned.Message ID: @.***>

AktilaCengiz commented 4 months ago

3 devices for me.

AktilaCengiz commented 4 months ago

Anyone find the solution ? If i am change to tdlib new version is this okay ?

esaaprillia commented 4 months ago

This problem has been around for a long time

https://github.com/vysheng/tg/issues/1758

AktilaCengiz commented 4 months ago

This problem about large group or channel. Please use openChat then solve it.