Layer 220
ChannelForbidden
Indicates a channel/supergroup we can't access because we were banned, or for some other reason.
constructor
channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true id:long access_hash:long title:string until_date:flags.16?int = Chat;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Broadcast | flags.5?true | Is this a channel |
| Megagroup | flags.8?true | Is this a supergroup |
| Id | long | Channel ID |
| AccessHash | long | Access hash |
| Title | string | Title |
| UntilDate | flags.16?int | The ban is valid until the specified date |
Returns
ChatGogram Example
// Creating ChannelForbidden constructor obj := &tg.ChannelForbidden{ Id: int64(0), AccessHash: int64(0), Title: "...", // Optional fields: // Broadcast: true, // Megagroup: true, // UntilDate: 0, }