api!: remove public APIs to check if the chat is protected

This commit is contained in:
link2xt
2025-08-17 03:33:25 +00:00
parent 90f0d5c060
commit c6722d36de
7 changed files with 1 additions and 57 deletions

View File

@@ -1397,7 +1397,7 @@ impl ChatId {
}
/// Returns true if the chat is protected.
pub async fn is_protected(self, context: &Context) -> Result<ProtectionStatus> {
pub(crate) async fn is_protected(self, context: &Context) -> Result<ProtectionStatus> {
let protection_status = context
.sql
.query_get_value("SELECT protected FROM chats WHERE id=?", (self,))