mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-11 16:50:37 +01:00
35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
|
---
|
||
|
title: "channelForbidden"
|
||
|
description: "Indicates a channel/supergroup we can't access because we were banned, or for some other reason."
|
||
|
nav_exclude: true
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: channelForbidden
|
||
|
[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|
|
||
|
|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, 'id' => long, 'access_hash' => long, 'title' => 'string', 'until_date' => int];
|
||
|
```
|