teloxide_core/payloads/
set_chat_title.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{Recipient, True};
6
7impl_payload! {
8    /// Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns _True_ on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub SetChatTitle (SetChatTitleSetters) => True {
11        required {
12            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
13            pub chat_id: Recipient [into],
14            /// New chat title, 1-128 characters
15            pub title: String [into],
16        }
17    }
18}