botx_api/api/v3/chats/disable_stealth/
models.rs1use serde::{Serialize, Deserialize};
2use uuid::Uuid;
3
4use crate::api::{
5 models::ChatNotFound,
6 v3::chats::models::*
7};
8
9#[derive(Debug, Serialize, Deserialize, Default, Clone, Builder)]
11#[builder(setter(into, prefix = "with", strip_option))]
12pub struct DisableStealthRequest {
13 pub group_chat_id: Uuid,
15}
16
17#[derive(Debug, Serialize, Deserialize, Clone)]
19pub struct DisableStealthResponse {
20 pub result: bool,
24}
25
26#[derive(Debug, Serialize, Deserialize, Clone)]
28#[serde(tag = "reason")]
29pub enum DisableStealthError {
30 #[serde(rename(serialize = "chat_not_found", deserialize = "chat_not_found"))]
32 ChatNotFound(ChatNotFound),
33
34 #[serde(rename(serialize = "no_permission_for_operation", deserialize = "no_permission_for_operation"))]
36 NoPermissionForOperation(NoPermissionForOperation),
37
38 #[serde(other)]
41 Other,
42}