Struct telbot_types::chat::SetChatDescription[][src]

pub struct SetChatDescription {
    pub chat_id: ChatId,
    pub description: Option<String>,
}
Expand description

Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.

Fields

chat_id: ChatId

Unique identifier for the target group or username of the target supergroup or channel (in the format @username)

description: Option<String>

New chat description, 0-255 characters

Implementations

Create a new setChatDescription request which empties the description

Create a new setChatDescription request with description

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.