Layer 227
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 |
|---|---|---|
| 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 participant's tag, defaults to "Admin" if not set. |
Returns
ChannelParticipantGogram Example
// Creating ChannelParticipantAdmin constructor obj := &tg.ChannelParticipantAdmin{ CanEdit: nil, Self: nil, UserId: int64(1234567890), InviterId: nil, PromotedBy: int64(1234567890), Date: 42, // ... more required fields }