Link Search Menu Expand Document

Constructor: channelParticipantAdmin

Back to constructors index

Admin

Attributes:

NameTypeRequiredDescription
can_editBoolOptionalCan this admin promote other admins with the same permissions?
selfBoolOptionalIs this the current user
user_idlongYesAdmin user ID
inviter_idlongOptionalUser that invited the admin to the channel/group
promoted_bylongYesUser that promoted the user to admin
dateintYesWhen did the user join
admin_rightsChatAdminRightsYesAdmin rights
rankstringOptionalThe role (rank) of the admin in the group: just an arbitrary string, admin by default

Type: ChannelParticipant

Example:

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