mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-11-30 04:39:42 +01:00
27 lines
1.4 KiB
Markdown
27 lines
1.4 KiB
Markdown
---
|
|
title: Participant
|
|
description: PWRTelegram participant attributes, type and example
|
|
nav_exclude: true
|
|
---
|
|
## Constructor: PWRTelegram chat participant
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description|
|
|
|----------|---------------|----------|------------|
|
|
|user|[Chat](Chat.html) | Yes| The participant|
|
|
|inviter|[Chat](Chat.html) | Optional|The user that invited this participant|
|
|
|promoted_by|[Chat](Chat.html) | Optional|The user that promoted this participant|
|
|
|kicked_by|[Chat](Chat.html) | Optional|The user that kicked this participant|
|
|
|date|[int](API_docs/types/int.html) | Yes|When was the user invited|
|
|
|role|[string](API_docs/types/string.html) | Yes|user, admin, creator, banned|
|
|
|via_request|[bool](API_docs/types/bool.html) | Optional|Whether the user is the current user, and we joined upon specific approval of an admin|
|
|
|left|[bool](API_docs/types/bool.html) | Optional|For banned/kicked users, whether the user has left the group|
|
|
|rank|[string](API_docs/types/string.html) | Optional|A custom rank string for admins and creators|
|
|
|can_edit|[Bool](API_docs/types/Bool.html) | Optional|Can the user edit messages in the channel|
|
|
|left|[Bool](API_docs/types/Bool.html) | Optional|Has this user left|
|
|
|admin_rights|[ChatAdminRights](API_docs/types/ChatAdminRights.html) | Optional|Admin rights|
|
|
|banned_rights|[ChatBannedRights](API_docs/types/ChatBannedRights.html) | Optional|Banned rights|
|