Fix inputGroupCallStream flags.

This commit is contained in:
levlam 2022-01-27 01:59:36 +03:00
parent 6ebb83a194
commit 4e4d7c1e83

View File

@ -43,6 +43,9 @@ class GetGroupCallStreamQuery final : public Td::ResultHandler {
void send(InputGroupCallId input_group_call_id, DcId stream_dc_id, int64 time_offset, int32 scale, int32 channel_id, void send(InputGroupCallId input_group_call_id, DcId stream_dc_id, int64 time_offset, int32 scale, int32 channel_id,
int32 video_quality) { int32 video_quality) {
int32 stream_flags = 0; int32 stream_flags = 0;
if (channel_id != 0) {
stream_flags |= telegram_api::inputGroupCallStream::VIDEO_CHANNEL_MASK;
}
auto input_stream = make_tl_object<telegram_api::inputGroupCallStream>( auto input_stream = make_tl_object<telegram_api::inputGroupCallStream>(
stream_flags, input_group_call_id.get_input_group_call(), time_offset, scale, channel_id, video_quality); stream_flags, input_group_call_id.get_input_group_call(), time_offset, scale, channel_id, video_quality);
int32 flags = 0; int32 flags = 0;