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

Issue with td_api::loadGroupCallParticipants #2257

Closed Geliusan closed 1 year ago

Geliusan commented 1 year ago

I created a video chat and connected to it from 2 accounts, I'm trying to use td_api::loadGroupCallParticipants, but I get an error: 400 - Can't load group call participants. Here is a code snippet:

auto participants = td_api::make_object(); participants->group_callid = videochatid; participants->limit = 32; send_query(move(participants), [this](Object object){ if (object->get_id() == td_api::ok::ID) { cout << "hren" <<endl; } else { cout << "ne hren" << object->get_id() <<endl; } if(object->get_id() == td_api::error::ID) { cout << "ERRMSG: " << static_cast<tdapi::error &>(*object).message << endl; } });

videochatid_ is a variable that I passed the video chat value to, it works, I checked it with td_api::endGroupCall

levlam commented 1 year ago

You can't load group call participants without joining the group call.

Geliusan commented 1 year ago

You can't load group call participants without joining the group call.

I'm in a video chat using the tgcalls library.

levlam commented 1 year ago

The error is returned, if you didn't call joinGroupCall, or has left it. Check the value of the field groupCall.is_joined.