MadelineProtoDocs/docs/API_docs/constructors/channelForbidden.md

35 lines
1.2 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
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];
```