Add td_api::chatEventActiveUsernamesChanged.

This commit is contained in:
levlam 2022-10-14 18:02:03 +03:00
parent 9b0cea912a
commit 2d8d3716f9
2 changed files with 5 additions and 1 deletions

View File

@ -2927,6 +2927,9 @@ chatEventTitleChanged old_title:string new_title:string = ChatEventAction;
//@description The chat editable username was changed @old_username Previous chat username @new_username New chat username
chatEventUsernameChanged old_username:string new_username:string = ChatEventAction;
//@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 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

@ -129,7 +129,8 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
}
case telegram_api::channelAdminLogEventActionChangeUsernames::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeUsernames>(action_ptr);
return nullptr;
return td_api::make_object<td_api::chatEventActiveUsernamesChanged>(std::move(action->prev_value_),
std::move(action->new_value_));
}
case telegram_api::channelAdminLogEventActionChangePhoto::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangePhoto>(action_ptr);