Layer 227
constructor
channelForbidden#17d493d5 flags:# broadcast:flags.5?true megagroup:flags.8?true monoforum:flags.10?true id:long access_hash:long title:string until_date:flags.16?int = Chat;

Parameters

Name Type Description
Broadcast flags .5? true Is this a channel
Megagroup flags .8? true Is this a supergroup
Monoforum flags .10? true If set, this is a monoforum.
Id long Channel ID
AccessHash long Access hash
Title string Title
UntilDate flags .16? int The ban is valid until the specified date

Returns

Chat

Gogram Example

// Creating ChannelForbidden constructor
obj := &tg.ChannelForbidden{
    Broadcast: nil,
    Megagroup: nil,
    Monoforum: nil,
    Id: int64(1234567890),
    AccessHash: int64(1234567890),
    Title: "Hello, World!",
    // ... more required fields
}