MadelineProtoDocs/old_docs/API_docs_v70/constructors/chat.md

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

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}