MadelineProto/docs/TD_docs/constructors/group.md

50 lines
1.5 KiB
Markdown
Raw Normal View History

---
title: group
description: Represents a group of zero or more other users
---
## Constructor: group
[Back to constructors index](index.md)
Represents a group of zero or more other users
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|id|[int](../types/int.md) | Yes|Group identifier|
|member\_count|[int](../types/int.md) | Yes|Group member count|
|status|[ChatMemberStatus](../types/ChatMemberStatus.md) | Yes|Status of the current user in the group|
|anyone\_can\_edit|[Bool](../types/Bool.md) | Yes|True, if all members granted editor rights in the group|
|is\_active|[Bool](../types/Bool.md) | Yes|True, if group is active|
|migrated\_to\_channel\_id|[int](../types/int.md) | Yes|Identifier of channel (supergroup) to which this group was migrated or 0 if none|
### Type: [Group](../types/Group.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$group = ['_' => 'group', 'id' => int, 'member_count' => int, 'status' => ChatMemberStatus, 'anyone_can_edit' => Bool, 'is_active' => Bool, 'migrated_to_channel_id' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "group", "id": int, "member_count": int, "status": ChatMemberStatus, "anyone_can_edit": Bool, "is_active": Bool, "migrated_to_channel_id": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
group={_='group', id=int, member_count=int, status=ChatMemberStatus, anyone_can_edit=Bool, is_active=Bool, migrated_to_channel_id=int}
```