Struct telegram_bot_raw_ars::types::chat::RawChat
source · pub struct RawChat {
pub id: Integer,
pub type_: String,
pub title: Option<String>,
pub username: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub invite_link: Option<String>,
pub language_code: Option<String>,
pub all_members_are_administrators: Option<bool>,
}
Expand description
This object represents a chat, directly mapped.
Fields§
§id: Integer
Unique identifier for this chat.
type_: 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
invite_link: Option<String>
Invite link for this chat, specific to this bot. Does not apply to private chats.
language_code: Option<String>
IETF language tag of the other party in a private chat
all_members_are_administrators: Option<bool>
True if a group has ‘All Members Are Admins’ enabled.
Trait Implementations§
source§impl<'de> Deserialize<'de> for RawChat
impl<'de> Deserialize<'de> for RawChat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for RawChat
impl Ord for RawChat
source§impl PartialEq<RawChat> for RawChat
impl PartialEq<RawChat> for RawChat
source§impl PartialOrd<RawChat> for RawChat
impl PartialOrd<RawChat> for RawChat
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more