Skip to content

channels.createChannel

Layer 225

Constructor ID: 0x91006707
Returns: Updates

Parameters

NameTypeDescription
broadcastbool (flags.0, optional)
megagroupbool (flags.1, optional)
for_importbool (flags.3, optional)
forumbool (flags.5, optional)
titlestring
aboutstring
geo_pointInputGeoPoint (flags.2, optional)
addressstring (flags.2, optional)
ttl_periodint32 (flags.4, optional)

Example

go
result, err := client.Raw(&tg.CreateChannelRequest{
    broadcast: false,
    megagroup: false,
    for_import: false,
    forum: false,
    title: "",
    about: "",
    geo_point: nil, // InputGeoPoint
    address: "",
    ttl_period: 0,
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.