MadelineProtoDocs/old_docs/API_docs_v2/constructors/chat.md

1.2 KiB

title description image
chat Info about a group https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chat

Back to constructors index

Info about a group

Attributes:

Name Type Required Description
id int Yes ID of the group
title string Yes Title
photo ChatPhoto Optional Chat photo
participants_count int Yes Participant count
date int Yes Date of creation of the group
left Bool Yes
version int Yes Used in basic groups to reorder updates and make sure that all of them were received.

Type: Chat

Example:

$chat = ['_' => 'chat', 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'left' => Bool, 'version' => int];

Or, if you're into Lua:

chat={_='chat', id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, left=Bool, version=int}