Add chatEventAllowSavingContentToggled.
This commit is contained in:
parent
5068f585bb
commit
cb7bd82c01
@ -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
|
//@description The sign_messages setting of a channel was toggled @sign_messages New value of sign_messages
|
||||||
chatEventSignMessagesToggled sign_messages:Bool = ChatEventAction;
|
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
|
//@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;
|
chatEventStickerSetChanged old_sticker_set_id:int64 new_sticker_set_id:int64 = ChatEventAction;
|
||||||
|
|
||||||
|
@ -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(),
|
return td_api::make_object<td_api::chatEventMessageTtlSettingChanged>(old_value.get_message_ttl_setting_object(),
|
||||||
new_value.get_message_ttl_setting_object());
|
new_value.get_message_ttl_setting_object());
|
||||||
}
|
}
|
||||||
case telegram_api::channelAdminLogEventActionToggleNoForwards::ID:
|
case telegram_api::channelAdminLogEventActionToggleNoForwards::ID: {
|
||||||
return nullptr;
|
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionToggleNoForwards>(action_ptr);
|
||||||
|
return td_api::make_object<td_api::chatEventAllowSavingContentToggled>(action->new_value_);
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user