Link Search Menu Expand Document

Constructor: channelParticipantBanned

Back to constructors index

Banned/kicked user

Attributes:

NameTypeRequiredDescription
leftBoolOptionalWhether the user has left the group
peerlongYesThe banned peer
kicked_bylongYesUser was kicked by the specified admin
dateintYesWhen did the user join the group
banned_rightsChatBannedRightsYesBanned rights

Type: ChannelParticipant

Example:

$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'peer' => long, 'kicked_by' => long, 'date' => int, 'banned_rights' => ChatBannedRights];