MadelineProtoDocs/docs/API_docs/constructors/channelParticipantAdmin.md
2019-03-08 14:35:09 +01:00

1.5 KiB

title description image
channelParticipantAdmin Channel participant admin https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: channelParticipantAdmin

Back to constructors index

Channel participant admin

Attributes:

Name Type Required Description
can_edit Bool Optional Can edit?
self Bool Optional Is this the current user?
user_id int Yes User ID
inviter_id int Optional Inviter ID
promoted_by int Yes Promoted by
date int Yes Date
admin_rights ChatAdminRights Yes Admin rights

Type: ChannelParticipant

Example:

$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChatAdminRights];

PWRTelegram json-encoded version:

{"_": "channelParticipantAdmin", "can_edit": Bool, "self": Bool, "user_id": int, "inviter_id": int, "promoted_by": int, "date": int, "admin_rights": ChatAdminRights}

Or, if you're into Lua:

channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, self=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChatAdminRights}