# channelForbidden

> Indicates a channel/supergroup we can't access because we were banned, or for some other reason.

[Back to constructors index](/API_docs/constructors/index.html)



Indicates a channel/supergroup we can't access because we were banned, or for some other reason.

### Attributes:

| Name     |    Type       | Required | Description |
|----------|---------------|----------|-------------|
|broadcast|[Bool](/API_docs/types/Bool.html) | Optional|Is this a channel|
|megagroup|[Bool](/API_docs/types/Bool.html) | Optional|Is this a supergroup|
|monoforum|[Bool](/API_docs/types/Bool.html) | Optional|
|id|[long](/API_docs/types/long.html) | Yes|Channel ID|
|access\_hash|[long](/API_docs/types/long.html) | Yes|Access hash|
|title|[string](/API_docs/types/string.html) | Yes|Title|
|until\_date|[int](/API_docs/types/int.html) | Optional|The ban is valid until the specified date|



### Type: [Chat](/API_docs/types/Chat.html)


### Example:

```
$channelForbidden = ['_' => 'channelForbidden', 'broadcast' => Bool, 'megagroup' => Bool, 'monoforum' => Bool, 'id' => long, 'access_hash' => long, 'title' => 'string', 'until_date' => int];
```
