Struct telbot_types::chat::SetChatPhoto[][src]

pub struct SetChatPhoto {
    pub chat_id: ChatId,
    pub photo: InputFile,
}
Expand description

Use this method to set a new profile photo for the chat. Photos 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 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)

photo: InputFile

New chat photo, uploaded using multipart/form-data

Implementations

Create a new setChatPhoto request

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.