use std::collections::HashMap;
use chrono::{DateTime, Utc};
use serde::{Serialize, Deserialize};
use uuid::Uuid;
use crate::bot::models::ChatType;
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ChatsListResponse {
pub result: Vec<ChatsListResult>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ChatsListResult {
pub group_chat_id: Uuid,
pub chat_type: ChatType,
pub name: String,
pub description: String,
pub members: Vec<Uuid>,
pub shared_history: bool,
pub inserted_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ChatsListError {
#[serde(flatten)]
pub data: HashMap<String, String>,
}