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