MadelineProto/docs/TD_docs/constructors/group.md
2017-07-23 16:11:02 +02:00

1.5 KiB

title description
group Represents a group of zero or more other users

Constructor: group

Back to constructors index

Represents a group of zero or more other users

Attributes:

Name Type Required Description
id int Yes Group identifier
member_count int Yes Group member count
status ChatMemberStatus Yes Status of the current user in the group
anyone_can_edit Bool Yes True, if all members granted editor rights in the group
is_active Bool Yes True, if group is active
migrated_to_channel_id int Yes Identifier of channel (supergroup) to which this group was migrated or 0 if none

Type: Group

Example:

$group = ['_' => 'group', 'id' => int, 'member_count' => int, 'status' => ChatMemberStatus, 'anyone_can_edit' => Bool, 'is_active' => Bool, 'migrated_to_channel_id' => int, ];

PWRTelegram json-encoded version:

{"_":"group","id":"int","member_count":"int","status":"ChatMemberStatus","anyone_can_edit":"Bool","is_active":"Bool","migrated_to_channel_id":"int"}

Or, if you're into Lua:

group={_='group', id=int, member_count=int, status=ChatMemberStatus, anyone_can_edit=Bool, is_active=Bool, migrated_to_channel_id=int, }