Raw.channels.CreateChannel

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: 185
Constructor ID: 0x91006707

Property

  • broadcast : boolean or undefined

    Whether to create a channel

  • megagroup : boolean or undefined

    Whether to create a supergroup

  • forImport : boolean or undefined

    Whether the supergroup is being created to import messages from a foreign chat service using messages.inithistoryimport

  • forum : boolean or undefined

    Whether to create a forum

  • title : string

    Channel title

  • about : string

    Channel description

  • geoPoint : Raw.TypeInputGeoPoint or undefined

    Geogroup location, see here for more info on geogroups.

  • address : string or undefined

    Geogroup address, see here for more info on geogroups.

  • ttlPeriod : number or undefined

    Time-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.

Results

Raw.TypeUpdates