Struct telegram_typings::Chat [] [src]

pub struct Chat {
    pub id: i64,
    pub type_tl: 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<Box<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>,
}

This object represents a chat.

Fields

Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

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

Title, for supergroups, channels and group chats

Username, for private chats, supergroups and channels if available

First name of the other party in a private chat

Last name of the other party in a private chat

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

Chat photo. Returned only in getChat. See https://core.telegram.org/bots/api#getchat

Description, for supergroups and channel chats. Returned only in getChat. See https://core.telegram.org/bots/api#getchat

Chat invite link, for supergroups and channel chats. Returned only in getChat. See https://core.telegram.org/bots/api#getchat

Pinned message, for supergroups and channel chats. Returned only in getChat. See https://core.telegram.org/bots/api#getchat

For supergroups, name of group sticker set. Returned only in getChat. See https://core.telegram.org/bots/api#getchat

True, if the bot can change the group sticker set. Returned only in getChat. See https://core.telegram.org/bots/api#getchat

Trait Implementations

impl Debug for Chat
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Chat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Chat

impl Sync for Chat