Closed Geliusan closed 1 year ago
You can't load group call participants without joining the group call.
You can't load group call participants without joining the group call.
I'm in a video chat using the tgcalls library.
The error is returned, if you didn't call joinGroupCall
, or has left it. Check the value of the field groupCall.is_joined
.
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