Add td_api::chatEventVoiceChatParticipantVolumeLevelChanged.
This commit is contained in:
parent
9b62afbea2
commit
998d022b2d
@ -2455,6 +2455,9 @@ chatEventVoiceChatDiscarded group_call_id:int32 = ChatEventAction;
|
||||
//@description A voice chat participant was muted or unmuted @user_id Identifier of the affected user @is_muted New value of is_muted
|
||||
chatEventVoiceChatParticipantIsMutedToggled user_id:int32 is_muted:Bool = ChatEventAction;
|
||||
|
||||
//@description A voice chat participant volume level was changed @user_id Identifier of the affected user @volume_level New value of volume_level; 1-20000 in hundreds of percents
|
||||
chatEventVoiceChatParticipantVolumeLevelChanged user_id:int32 volume_level:int32 = ChatEventAction;
|
||||
|
||||
//@description The mute_new_participants setting of a voice chat was toggled @mute_new_participants New value of the mute_new_participants setting
|
||||
chatEventVoiceChatMuteNewParticipantsToggled mute_new_participants:Bool = ChatEventAction;
|
||||
|
||||
|
Binary file not shown.
@ -31371,8 +31371,16 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
|
||||
return make_tl_object<td_api::chatEventVoiceChatParticipantIsMutedToggled>(
|
||||
td_->contacts_manager_->get_user_id_object(participant.user_id, "LogEventActionParticipantUnmute"), false);
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionParticipantVolume::ID:
|
||||
return nullptr;
|
||||
case telegram_api::channelAdminLogEventActionParticipantVolume::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionParticipantVolume>(action_ptr);
|
||||
GroupCallParticipant participant(std::move(action->participant_));
|
||||
if (!participant.is_valid()) {
|
||||
return nullptr;
|
||||
}
|
||||
return make_tl_object<td_api::chatEventVoiceChatParticipantVolumeLevelChanged>(
|
||||
td_->contacts_manager_->get_user_id_object(participant.user_id, "LogEventActionParticipantVolume"),
|
||||
participant.volume_level);
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionToggleGroupCallSetting::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionToggleGroupCallSetting>(action_ptr);
|
||||
return make_tl_object<td_api::chatEventVoiceChatMuteNewParticipantsToggled>(action->join_muted_);
|
||||
|
Loading…
Reference in New Issue
Block a user