MadelineProtoDocs/docs/API_docs/constructors/channelAdminLogEventActionParticipantToggleBan.md

31 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "channelAdminLogEventActionParticipantToggleBan"
description: "The banned rights of a user were changed"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionParticipantToggleBan
[Back to constructors index](/API_docs/constructors/index.html)
The banned [rights](https://core.telegram.org/api/rights) of a user were changed
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|prev\_participant|[ChannelParticipant](/API_docs/types/ChannelParticipant.html) | Yes|Old banned rights of user|
|new\_participant|[ChannelParticipant](/API_docs/types/ChannelParticipant.html) | Yes|New banned rights of user|
### Type: [ChannelAdminLogEventAction](/API_docs/types/ChannelAdminLogEventAction.html)
### Example:
```
$channelAdminLogEventActionParticipantToggleBan = ['_' => 'channelAdminLogEventActionParticipantToggleBan', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant];
```