pub struct Chat {Show 19 fields
pub id: i64,
pub type_: ChatType,
pub title: String,
pub photo: Option<ChatPhoto>,
pub last_message: Option<Message>,
pub order: i64,
pub is_pinned: bool,
pub is_marked_as_unread: bool,
pub is_sponsored: bool,
pub can_be_reported: bool,
pub default_disable_notification: bool,
pub unread_count: i32,
pub last_read_inbox_message_id: i64,
pub last_read_outbox_message_id: i64,
pub unread_mention_count: i32,
pub notification_settings: ChatNotificationSettings,
pub reply_markup_message_id: i64,
pub draft_message: Option<DraftMessage>,
pub client_data: String,
}
Expand description
A chat. (Can be a private chat, basic group, supergroup, or secret chat)
Fields§
§id: i64
Chat unique identifier
type_: ChatType
Type of the chat
title: String
Chat title
photo: Option<ChatPhoto>
Chat photo; may be null
last_message: Option<Message>
Last message in the chat; may be null
order: i64
Descending parameter by which chats are sorted in the main chat list. If the order number of two chats is the same, they must be sorted in descending order by ID. If 0, the position of the chat in the list is undetermined
is_pinned: bool
True, if the chat is pinned
is_marked_as_unread: bool
True, if the chat is marked as unread
is_sponsored: bool
True, if the chat is sponsored by the user’s MTProxy server
can_be_reported: bool
True, if the chat can be reported to Telegram moderators through reportChat
default_disable_notification: bool
Default value of the disable_notification parameter, used when a message is sent to the chat
unread_count: i32
Number of unread messages in the chat
last_read_inbox_message_id: i64
Identifier of the last read incoming message
last_read_outbox_message_id: i64
Identifier of the last read outgoing message
unread_mention_count: i32
Number of unread messages with a mention/reply in the chat
notification_settings: ChatNotificationSettings
Notification settings for this chat
reply_markup_message_id: i64
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
draft_message: Option<DraftMessage>
A draft of a message in the chat; may be null
client_data: String
Contains client-specific data associated with the chat. (For example, the chat position or local chat notification settings can be stored here.) Persistent if a message database is used