Raw.channels.CreateChannel
Create a supergroup/channel.
channels.createChannel#91006707 flags:# broadcast:flags.0?true megagroup:flags.1?true for_import:flags.3?true forum:flags.5?true title:string about:string geo_point:flags.2?InputGeoPoint address:flags.2?string ttl_period:flags.4?int = Updates;export namespace Raw {
export namespace channels {
export class CreateChannel {
constructor(params: {
broadcast?: boolean;
megagroup?: boolean;
forImport?: boolean;
forum?: boolean;
title: string;
about: string;
geoPoint?: Raw.TypeInputGeoPoint;
address?: string;
ttlPeriod?: number;
}) {}
}
}
}This is a function constructor, you can use it as method when call invoke
Layer: 201
Constructor ID: 0x91006707
Property
broadcast: boolean or undefinedWhether to create a channel
megagroup: boolean or undefinedWhether to create a supergroup
forImport: boolean or undefinedWhether the supergroup is being created to import messages from a foreign chat service using messages.inithistoryimport
forum: boolean or undefinedWhether to create a forum
title: stringChannel title
about: stringChannel description
geoPoint: Raw.TypeInputGeoPoint or undefinedGeogroup location, see here for more info on geogroups.
address: string or undefinedGeogroup address, see here for more info on geogroups.
ttlPeriod: number or undefinedTime-to-live of all messages that will be sent in the supergroup: once message.date+message.ttlPeriod === time(), the message will be deleted on the server, and must be deleted locally as well. you can use messages.setdefaulthistoryttl to edit this value later.