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

Tdlib Not Sending UpdateNewChat Event for New Supergroups #3050

Closed Skeith94 closed 1 month ago

Skeith94 commented 1 month ago

Hello everyone,

I’m developing a new client for Android TV (java), but I’m encountering a problem that I can't resolve at the moment. When a user joins a new supergroup from the Telegram app on their smartphone, I notice while debugging Tdlib’s behavior that I receive a "TdApi.UpdateSupergroup" event. According to the documentation, I would expect an "TdApi.UpdateNewChat" event to follow, but this does not occur. Additionally, I’ve tried a workaround for this issue. I’ve observed that Tdlib typically assigns a chatId for the supergroup as -100+supergroup.id, but despite attempting a TdApi.GetChat(id) request, I receive a 400 error. Furthermore, upon investigating, if I delete the supergroup in question, I finally receive a TdApi.UpdateNewChat event, as if Tdlib wasn’t properly synchronized with the remote counterpart. Could you please assist me with this? I am available to provide some logs of the tests I’ve conducted if it helps to resolve this issue. Thank you.

levlam commented 1 month ago

Could you send TDLib logs with verbosity level 4 since app start to https://t.me/tdlib_bot?

Skeith94 commented 1 month ago

I've just sent the TDLib logs with verbosity level 4 since app start.

levlam commented 1 month ago

Could you check whether the issue is fixed in the have just pushed to Github TDLib version?

Skeith94 commented 1 month ago

I'm using version 1.8.35, has a new version been released?

levlam commented 1 month ago

The latest version on Github master is 1.8.36.

Skeith94 commented 1 month ago

With new version the problem is resolved 1.8.36. Thank you very much :)

levlam commented 1 month ago

Thank you for the report.