MadelineProtoDocs/old_docs/API_docs_v21/constructors/chat.md
2020-06-16 17:50:25 +02:00

2.0 KiB

title description image
chat Info about a group https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chat

Back to constructors index

Info about a group

Attributes:

Name Type Required Description
creator Bool Optional Whether the current user is the creator of the group
kicked Bool Optional Whether the current user was kicked from the group
left Bool Optional Whether the current user has left the group
admins_enabled Bool Optional
admin Bool Optional
deactivated Bool Optional Whether the group was migrated
id int Yes ID of the group
title string Yes Title
photo ChatPhoto Optional Chat photo
participants_count int Yes Participant count
date int Yes Date of creation of the group
version int Yes Used in basic groups to reorder updates and make sure that all of them were received.
migrated_to InputChannel Optional Means this chat was upgraded to a supergroup

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}