tdlib / td

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

The return parameter of'groupCallParticipant' is wrong. #1727

Closed StevenMichael3213 closed 2 years ago

StevenMichael3213 commented 2 years ago

The td_api.tl document shows that there are many parameters of groupCallParticipant, including participant_id, is_hand_raised, etc., but when I tested Telegram React, I found that the parameters in the groupCallParticipant object obtained were few, as shown in the screenshot(Logs printed out by the web console). There is noparticipant_id and is_hand_raised, but user_id is included. I don't know if it is the cause of tdlib or Telegram React. When I was running Telegram React, I followed the author's suggestion. First execute npm ci, then execute cp node_modules/tdweb/dist/* public/, so my tdweb code should be the latest. Do you know the reason? image

image

levlam commented 2 years ago

You look at documentation from the latest TDLib version, but use much older tdweb 1.7.2. You need TDLib 1.7.2 documentation, which you can obtain from git history.

StevenMichael3213 commented 2 years ago

Thank you very much for your answer. I read the previous api document, and it turns out that the id_raise_hand field was added after 1.7.2.

It seems that I need to recompile the tdweb library.

Thanks again.

levlam commented 2 years ago

Yes. If you want the latest tdweb, you need to rebuild it from the source code.