MadelineProtoDocs/old_docs/API_docs_v38/constructors/chat.md

966 B

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
version int Yes Version

Type: Chat

Example:

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

Or, if you're into Lua:

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