2.8 KiB
2.8 KiB
title | description |
---|---|
chat | Chat (private chat or group chat or channel chat) |
Constructor: chat
Chat (private chat or group chat or channel chat)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | long | Yes | Chat unique identifier |
title | string | Yes | Chat title |
photo | chatPhoto | Yes | Chat photo, nullable |
top_message | message | Yes | Last message in the chat, nullable |
order | long | 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. |
unread_count | int | Yes | Count of unread messages in the chat |
last_read_inbox_message_id | long | Yes | Identifier of last read incoming message |
last_read_outbox_message_id | long | Yes | Identifier of last read outgoing message |
notification_settings | notificationSettings | Yes | Notification settings for this chat |
reply_markup_message_id | long | 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 |
type | ChatInfo | Yes | Information about type of the chat |
Type: Chat
Example:
$chat = ['_' => 'chat', 'id' => long, 'title' => 'string', 'photo' => chatPhoto, 'top_message' => message, 'order' => long, 'unread_count' => int, 'last_read_inbox_message_id' => long, 'last_read_outbox_message_id' => long, 'notification_settings' => notificationSettings, 'reply_markup_message_id' => long, 'draft_message' => draftMessage, 'type' => ChatInfo];
PWRTelegram json-encoded version:
{"_": "chat", "id": long, "title": "string", "photo": chatPhoto, "top_message": message, "order": long, "unread_count": int, "last_read_inbox_message_id": long, "last_read_outbox_message_id": long, "notification_settings": notificationSettings, "reply_markup_message_id": long, "draft_message": draftMessage, "type": ChatInfo}
Or, if you're into Lua:
chat={_='chat', id=long, title='string', photo=chatPhoto, top_message=message, order=long, unread_count=int, last_read_inbox_message_id=long, last_read_outbox_message_id=long, notification_settings=notificationSettings, reply_markup_message_id=long, draft_message=draftMessage, type=ChatInfo}