Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>channels_createChannel_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class channels_createChannel_
extends Function_<enums.Updates>
import { channels_createChannel_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Constructors

new
channels_createChannel_(params: { broadcast?: true; megagroup?: true; for_import?: true; forum?: true; title: string; about: string; geo_point?: enums.InputGeoPoint; address?: string; ttl_period?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
about: string

Channel description

optional
address: string

Geogroup address, see here » for more info on geogroups.

optional
broadcast: true

Whether to create a channel

optional
for_import: true

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

optional
forum: true

Whether to create a forum

optional
geo_point: enums.InputGeoPoint

Geogroup location, see here » for more info on geogroups.

optional
megagroup: true

Whether to create a supergroup

title: string

Channel title

optional
ttl_period: number

Time-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === 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.

Static Properties

__F: (params: { broadcast?: true; megagroup?: true; for_import?: true; forum?: true; title: string; about: string; geo_point?: enums.InputGeoPoint; address?: string; ttl_period?: number; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc