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_createForumTopic_

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

Create a forum topic; requires manage_topics rights.

Constructors

new
channels_createForumTopic_(params: { channel: enums.InputChannel; title: string; icon_color?: number; icon_emoji_id?: bigint; random_id: bigint; send_as?: enums.InputPeer; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
channel: enums.InputChannel
optional
icon_color: number

If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F.

optional
icon_emoji_id: bigint

ID of the custom emoji used as topic icon. Telegram Premium users can use any custom emoji, other users can only use the custom emojis contained in the inputStickerSetEmojiDefaultTopicIcons emoji pack.

random_id: bigint

Unique client message ID to prevent duplicate sending of the same event

optional
send_as: enums.InputPeer

Create the topic as the specified peer

title: string

Topic title (maximum UTF-8 length: 128)

Static Properties

__F: (params: { channel: enums.InputChannel; title: string; icon_color?: number; icon_emoji_id?: bigint; random_id: bigint; send_as?: enums.InputPeer; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc