From 6c0722ed2ee9f37be8b4514a17573551445ca33d Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 18 Oct 2023 19:08:28 +0300 Subject: [PATCH] Mark that td_api::setChatMessageAutoDeleteTime is allowed only for users. --- td/telegram/Td.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index c38e854be..dc276ae73 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -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));