Add chatEventThemeChanged.

This commit is contained in:
levlam 2021-08-27 11:53:50 +03:00
parent e3f55a71cd
commit 021474e8be
2 changed files with 5 additions and 1 deletions

View File

@ -2518,6 +2518,9 @@ chatEventUsernameChanged old_username:string new_username:string = ChatEventActi
//@description The chat photo was changed @old_photo Previous chat photo value; may be null @new_photo New chat photo value; may be null
chatEventPhotoChanged old_photo:chatPhoto new_photo:chatPhoto = ChatEventAction;
//@description The chat theme was changed @old_theme_name Previous chat theme name; empty if none @new_theme_name New chat theme name; empty if none
chatEventThemeChanged old_theme_name:string new_theme_name:string = ChatEventAction;
//@description The can_invite_users permission of a supergroup chat was toggled @can_invite_users New value of can_invite_users permission
chatEventInvitesToggled can_invite_users:Bool = ChatEventAction;

View File

@ -31865,7 +31865,8 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
}
case telegram_api::channelAdminLogEventActionChangeTheme::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeTheme>(action_ptr);
return nullptr;
return make_tl_object<td_api::chatEventThemeChanged>(std::move(action->prev_value_),
std::move(action->new_value_));
}
default:
UNREACHABLE();