Add chatEventAllowSavingContentToggled.

This commit is contained in:
levlam 2021-11-23 16:07:26 +03:00
parent 5068f585bb
commit cb7bd82c01
2 changed files with 7 additions and 2 deletions

View File

@ -2598,6 +2598,9 @@ chatEventMessageTtlSettingChanged old_message_ttl_setting:int32 new_message_ttl_
//@description The sign_messages setting of a channel was toggled @sign_messages New value of sign_messages
chatEventSignMessagesToggled sign_messages:Bool = ChatEventAction;
//@description The allow_saving_content setting of a channel was toggled @allow_saving_content New value of allow_saving_content
chatEventAllowSavingContentToggled allow_saving_content:Bool = ChatEventAction;
//@description The supergroup sticker set was changed @old_sticker_set_id Previous identifier of the chat sticker set; 0 if none @new_sticker_set_id New identifier of the chat sticker set; 0 if none
chatEventStickerSetChanged old_sticker_set_id:int64 new_sticker_set_id:int64 = ChatEventAction;

View File

@ -329,8 +329,10 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
return td_api::make_object<td_api::chatEventMessageTtlSettingChanged>(old_value.get_message_ttl_setting_object(),
new_value.get_message_ttl_setting_object());
}
case telegram_api::channelAdminLogEventActionToggleNoForwards::ID:
return nullptr;
case telegram_api::channelAdminLogEventActionToggleNoForwards::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionToggleNoForwards>(action_ptr);
return td_api::make_object<td_api::chatEventAllowSavingContentToggled>(action->new_value_);
}
default:
UNREACHABLE();
return nullptr;