MadelineProtoDocs/old_docs/API_docs_v18/constructors/chat.md

1.0 KiB

title description image
chat Chat https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chat

Back to constructors index

Chat

Attributes:

Name Type Required Description
id int Yes ID
title string Yes Title
photo ChatPhoto Optional Photo
participants_count int Yes Participants count
date int Yes Date
left Bool Yes Left?
version int Yes Version

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}