MadelineProtoDocs/old_docs/API_docs_v27/constructors/chat.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.2 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];

PWRTelegram json-encoded version:

{"_": "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}