Add chatEventReplyBackgroundCustomEmojiChanged.

This commit is contained in:
levlam 2023-10-17 13:11:12 +03:00
parent 38baaf4953
commit 02b87ef1f3
2 changed files with 8 additions and 2 deletions

View File

@ -4191,6 +4191,9 @@ chatEventActiveUsernamesChanged old_usernames:vector<string> new_usernames:vecto
//@description The chat accent color was changed @old_accent_color_id Previous identifier of chat accent color @new_accent_color_id New identifier of chat accent color
chatEventAccentColorChanged old_accent_color_id:int32 new_accent_color_id:int32 = ChatEventAction;
//@description The chat's custom emoji for reply background was changed @old_reply_background_custom_emoji_id Previous identifier of the custom emoji @new_reply_background_custom_emoji_id New identifier of the custom emoji
chatEventReplyBackgroundCustomEmojiChanged old_reply_background_custom_emoji_id:int64 new_reply_background_custom_emoji_id:int64 = ChatEventAction;
//@description The has_protected_content setting of a channel was toggled @has_protected_content New value of has_protected_content
chatEventHasProtectedContentToggled has_protected_content:Bool = ChatEventAction;

View File

@ -432,8 +432,11 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
auto new_accent_color_id = clamp(action->new_value_, 0, 256);
return td_api::make_object<td_api::chatEventAccentColorChanged>(old_accent_color_id, new_accent_color_id);
}
case telegram_api::channelAdminLogEventActionChangeBackgroundEmoji::ID:
return nullptr;
case telegram_api::channelAdminLogEventActionChangeBackgroundEmoji::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeBackgroundEmoji>(action_ptr);
return td_api::make_object<td_api::chatEventReplyBackgroundCustomEmojiChanged>(action->prev_value_,
action->new_value_);
}
default:
UNREACHABLE();
return nullptr;