MadelineProtoDocs/docs/TD_docs/constructors/chat.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

2.2 KiB

title description image
chat Chat (private chat or group chat or channel chat) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chat

Back to constructors index

Chat (private chat or group chat or channel chat)

Attributes:

Name Type Required Description
id int53 Yes Chat unique identifier
type ChatType Yes Information about type of the chat
title string Yes Chat title
photo chatPhoto Yes Chat photo, nullable
top_message message Yes Last message in the chat, nullable
order int64 Yes Parameter by descending of which chats are sorted in the chat list. If order of two chats is equal, then they need to be sorted by id also in descending order. If order == 0, position of the chat in the list is undetermined
is_pinned Bool Yes True, if the chat is pinned
unread_count int Yes Count of unread messages in the chat
last_read_inbox_message_id int53 Yes Identifier of last read incoming message
last_read_outbox_message_id int53 Yes Identifier of last read outgoing message
unread_mention_count int Yes Count of unread messages with mention/reply in the chat
notification_settings notificationSettings Yes Notification settings for this chat
reply_markup_message_id int53 Yes Identifier of the message from which reply markup need to be used or 0 if there is no default custom reply markup in the chat
draft_message draftMessage Yes Draft of a message in the chat, nullable. parse_mode in input_message_text always will be null
client_data string Yes Client specified data, associated with the chat. For example, chat position or local chat notification settings may be stored here. Persistent if message db is used

Type: Chat