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

1.9 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
creator Bool Optional Creator?
kicked Bool Optional Kicked?
left Bool Optional Left?
admins_enabled Bool Optional Admins enabled?
admin Bool Optional Admin?
deactivated Bool Optional Deactivated?
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
migrated_to InputChannel Optional Migrated to

Type: Chat

Example:

$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel];

PWRTelegram json-encoded version:

{"_": "chat", "creator": Bool, "kicked": Bool, "left": Bool, "admins_enabled": Bool, "admin": Bool, "deactivated": Bool, "id": int, "title": "string", "photo": ChatPhoto, "participants_count": int, "date": int, "version": int, "migrated_to": InputChannel}

Or, if you're into Lua:

chat={_='chat', creator=Bool, kicked=Bool, left=Bool, admins_enabled=Bool, admin=Bool, deactivated=Bool, id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, version=int, migrated_to=InputChannel}