Struct rutebot::responses::Chat[][src]

pub struct Chat {
Show fields pub id: i64, pub typ: String, pub title: Option<String>, pub username: Option<String>, pub first_name: Option<String>, pub last_name: Option<String>, pub all_members_are_administrators: Option<bool>, pub photo: Option<ChatPhoto>, pub description: Option<String>, pub invite_link: Option<String>, pub pinned_message: Option<Box<Message>>, pub sticker_set_name: Option<String>, pub can_set_sticker_set: Option<bool>,
}
Expand description

This object represents a chat

Fields

id: i64

Unique identifier for this chat.

typ: String

Type of chat, can be either “private”, “group”, “supergroup” or “channel”

title: Option<String>

Title, for supergroups, channels and group chats

username: Option<String>

Username, for private chats, supergroups and channels if available

first_name: Option<String>

First name of the other party in a private chat

last_name: Option<String>

Last name of the other party in a private chat

all_members_are_administrators: Option<bool>

True if a group has ‘All Members Are Admins’ enabled

photo: Option<ChatPhoto>

Chat photo. Returned only in [get_chat]

description: Option<String>

Description, for supergroups and channel chats. Returned only in [get_chat]

invite_link: Option<String>

Chat invite link, for supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using [export_chat_invite_link]. Returned only in [get_chat]

pinned_message: Option<Box<Message>>

Pinned message, for supergroups and channel chats. Returned only in [get_chat]

sticker_set_name: Option<String>

For supergroups, name of group sticker set. Returned only in [get_chat]

can_set_sticker_set: Option<bool>

True, if the bot can change the group sticker set. Returned only in [get_chat]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.