Struct tg_bot_models::Chat [−][src]
pub struct Chat { pub id: i64, pub ty: 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>, }
This object represents a chat.
Fields
id: i64
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.
ty: String
Type of chat, can be either “private”, “group”, “supergroup” or “channel”
title: Option<String>
Optional. Title, for supergroups, channels and group chats
username: Option<String>
Optional. Username, for private chats, supergroups and channels if available
first_name: Option<String>
Optional. First name of the other party in a private chat
last_name: Option<String>
Optional. Last name of the other party in a private chat
all_members_are_administrators: Option<bool>
Optional. True if a group has ‘All Members Are Admins’ enabled.
photo: Option<ChatPhoto>
Optional. Chat photo. Returned only in getChat.
description: Option<String>
Optional. Description, for supergroups and channel chats. Returned only in getChat.
invite_link: Option<String>
Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat.
pinned_message: Option<Box<Message>>
Optional. Pinned message, for supergroups and channel chats. Returned only in getChat.
sticker_set_name: Option<String>
Optional. For supergroups, name of group sticker set. Returned only in getChat.
can_set_sticker_set: Option<bool>
Optional. True, if the bot can change the group sticker set. Returned only in getChat.
Trait Implementations
impl Debug for Chat
[src]
impl Debug for Chat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Chat
[src]
impl Clone for Chat
fn clone(&self) -> Chat
[src]
fn clone(&self) -> Chat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Chat
[src]
impl PartialEq for Chat
fn eq(&self, other: &Chat) -> bool
[src]
fn eq(&self, other: &Chat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Chat) -> bool
[src]
fn ne(&self, other: &Chat) -> bool
This method tests for !=
.
impl PartialOrd for Chat
[src]
impl PartialOrd for Chat
fn partial_cmp(&self, other: &Chat) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Chat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Chat) -> bool
[src]
fn lt(&self, other: &Chat) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Chat) -> bool
[src]
fn le(&self, other: &Chat) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Chat) -> bool
[src]
fn gt(&self, other: &Chat) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Chat) -> bool
[src]
fn ge(&self, other: &Chat) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more