Layer 220
ChannelParticipantAdmin
Admin
constructor
channelParticipantAdmin#34c3bb53 flags:# can_edit:flags.0?true self:flags.1?true user_id:long inviter_id:flags.1?long promoted_by:long date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| CanEdit | flags.0?true | Can this admin promote other admins with the same permissions? |
| Self | flags.1?true | Is this the current user |
| UserId | long | Admin user ID |
| InviterId | flags.1?long | User that invited the admin to the channel/group |
| PromotedBy | long | User that promoted the user to admin |
| Date | int | When did the user join |
| AdminRights | ChatAdminRights | Admin rights |
| Rank | flags.2?string | The role (rank) of the admin in the group: just an arbitrary string, admin by default |
Returns
ChannelParticipantGogram Example
// Creating ChannelParticipantAdmin constructor obj := &tg.ChannelParticipantAdmin{ UserId: int64(0), PromotedBy: int64(0), Date: 0, AdminRights: &tg.ChatAdminRights{}, // Optional fields: // CanEdit: true, // Self: true, // InviterId: int64(0), // Rank: "...", }