MadelineProtoDocs/old_docs/API_docs_v21/constructors/channelParticipantBanned.md
2020-06-16 17:50:25 +02:00

1.2 KiB

title description image
channelParticipantBanned Banned/kicked user https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: channelParticipantBanned

Back to constructors index

Banned/kicked user

Attributes:

Name Type Required Description
left Bool Optional Whether the user has left the group
user_id int Yes User ID
kicked_by int Yes User was kicked by the specified admin
date int Yes When did the user join the group
banned_rights ChannelBannedRights Yes

Type: ChannelParticipant

Example:

$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChannelBannedRights];

Or, if you're into Lua:

channelParticipantBanned={_='channelParticipantBanned', left=Bool, user_id=int, kicked_by=int, date=int, banned_rights=ChannelBannedRights}