Add td_api::chatEventAccentColorChanged.
This commit is contained in:
parent
ba15f3e1ef
commit
38baaf4953
@ -4188,6 +4188,9 @@ chatEventUsernameChanged old_username:string new_username:string = ChatEventActi
|
||||
//@description The chat active usernames were changed @old_usernames Previous list of active usernames @new_usernames New list of active usernames
|
||||
chatEventActiveUsernamesChanged old_usernames:vector<string> new_usernames:vector<string> = ChatEventAction;
|
||||
|
||||
//@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 has_protected_content setting of a channel was toggled @has_protected_content New value of has_protected_content
|
||||
chatEventHasProtectedContentToggled has_protected_content:Bool = ChatEventAction;
|
||||
|
||||
|
@ -426,8 +426,12 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionToggleAntiSpam>(action_ptr);
|
||||
return td_api::make_object<td_api::chatEventHasAggressiveAntiSpamEnabledToggled>(action->new_value_);
|
||||
}
|
||||
case telegram_api::channelAdminLogEventActionChangeColor::ID:
|
||||
return nullptr;
|
||||
case telegram_api::channelAdminLogEventActionChangeColor::ID: {
|
||||
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeColor>(action_ptr);
|
||||
auto old_accent_color_id = clamp(action->prev_value_, 0, 256);
|
||||
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;
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user