diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 236685cbd..00da7b99e 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -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 new_usernames:vector = 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; diff --git a/td/telegram/DialogEventLog.cpp b/td/telegram/DialogEventLog.cpp index 359289b0e..39aebf16d 100644 --- a/td/telegram/DialogEventLog.cpp +++ b/td/telegram/DialogEventLog.cpp @@ -129,7 +129,8 @@ static td_api::object_ptr get_chat_event_action_object( } case telegram_api::channelAdminLogEventActionChangeUsernames::ID: { auto action = move_tl_object_as(action_ptr); - return nullptr; + return td_api::make_object(std::move(action->prev_value_), + std::move(action->new_value_)); } case telegram_api::channelAdminLogEventActionChangePhoto::ID: { auto action = move_tl_object_as(action_ptr);