Link Search Menu Expand Document

Constructor: channelForbidden

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
broadcastBoolOptionalIs this a channel
megagroupBoolOptionalIs this a supergroup
idlongYesChannel ID
access_hashlongYesAccess hash
titlestringYesTitle
until_dateintOptionalThe ban is valid until the specified date

Type: Chat

Example:

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