# channelAdminLogEventActionParticipantToggleBan

> The banned rights of a user were changed

[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];
```
