Mark that td_api::setChatMessageAutoDeleteTime is allowed only for users.

This commit is contained in:
levlam 2023-10-18 19:08:28 +03:00
parent cf423903a0
commit 6c0722ed2e

View File

@ -6465,6 +6465,7 @@ void Td::on_request(uint64 id, const td_api::setChatPhoto &request) {
}
void Td::on_request(uint64 id, const td_api::setChatMessageAutoDeleteTime &request) {
CHECK_IS_USER();
CREATE_OK_REQUEST_PROMISE();
messages_manager_->set_dialog_message_ttl(DialogId(request.chat_id_), request.message_auto_delete_time_,
std::move(promise));