1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::types::*; /// Use this method to change the description of a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success. #[derive(Debug, Serialize, TelegramApi, Setters, New)] #[return_type = "True"] #[new(vis = "pub")] #[set(vis = "pub")] pub struct SetChatDescription { /// Unique identifier for the target chat or username of the target channel (in the format @channelusername) pub(crate) chat_id: ChatIdOrUsername, /// New chat description, 0-255 characters #[serde(skip_serializing_if = "Option::is_none")] pub(crate) description: Option<String>, }