Struct rust_tdlib::types::Chat
source · pub struct Chat { /* private fields */ }
Expand description
A chat. (Can be a private chat, basic group, supergroup, or secret chat)
Implementations§
source§impl Chat
impl Chat
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatBuilder
pub fn id(&self) -> i64
pub fn type_(&self) -> &ChatType
pub fn title(&self) -> &String
pub fn photo(&self) -> &Option<ChatPhotoInfo>
pub fn permissions(&self) -> &ChatPermissions
pub fn last_message(&self) -> &Option<Message>
pub fn positions(&self) -> &Option<Vec<ChatPosition>>
pub fn message_sender_id(&self) -> &Option<MessageSender>
pub fn has_protected_content(&self) -> bool
pub fn is_marked_as_unread(&self) -> bool
pub fn is_blocked(&self) -> bool
pub fn has_scheduled_messages(&self) -> bool
pub fn can_be_deleted_only_for_self(&self) -> bool
pub fn can_be_deleted_for_all_users(&self) -> bool
pub fn can_be_reported(&self) -> bool
pub fn default_disable_notification(&self) -> bool
pub fn unread_count(&self) -> i32
pub fn last_read_inbox_message_id(&self) -> i64
pub fn last_read_outbox_message_id(&self) -> i64
pub fn unread_mention_count(&self) -> i32
pub fn notification_settings(&self) -> &ChatNotificationSettings
pub fn message_ttl(&self) -> i32
pub fn theme_name(&self) -> &String
pub fn action_bar(&self) -> &Option<ChatActionBar>
pub fn video_chat(&self) -> &VideoChat
pub fn pending_join_requests(&self) -> &Option<ChatJoinRequestsInfo>
pub fn reply_markup_message_id(&self) -> i64
pub fn draft_message(&self) -> &Option<DraftMessage>
pub fn client_data(&self) -> &String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Chat
impl<'de> Deserialize<'de> for Chat
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