channelParticipantAdmin
Admin
type tg.ChannelParticipantAdmin struct { /* ... */ }
Implements ChannelParticipant.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
CanEdit | bool | — | Can this admin promote other admins with the same permissions? |
Self | bool | — | Is this the current user |
UserID | int64 | yes | Admin user ID |
InviterID | int64 | — | User that invited the admin to the channel/group |
PromotedBy | int64 | yes | User that promoted the user to admin |
Date | int | yes | When did the user join |
AdminRights | ChatAdminRights | yes | Admin rights |
Rank | string | — | The participant's tag », defaults to "Admin" if not set. |
References
- Official documentation
- Generated Go reference
- TL definition:
channelParticipantAdmin#34c3bb53