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

x/mtkruto/tl/2_types.ts>ForumTopic_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class ForumTopic_
extends _ForumTopic_
import { ForumTopic_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Represents a forum topic.

Constructors

new
ForumTopic_(params: { my?: true; closed?: true; pinned?: true; short?: true; hidden?: true; id: number; date: number; title: string; icon_color: number; icon_emoji_id?: bigint; top_message: number; read_inbox_max_id: number; read_outbox_max_id: number; unread_count: number; unread_mentions_count: number; unread_reactions_count: number; from_id: enums.Peer; notify_settings: enums.PeerNotifySettings; draft?: enums.DraftMessage; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
closed: true

Whether the topic is closed (no messages can be sent to it)

date: number

Topic creation date

optional
draft: enums.DraftMessage

Message draft

from_id: enums.Peer

ID of the peer that created the topic

optional
hidden: true

Whether the topic is hidden (only valid for the "General" topic, id=1)

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.

id: number
optional
my: true

Whether the topic was created by the current user

notify_settings: enums.PeerNotifySettings

Notification settings

optional
pinned: true

Whether the topic is pinned

read_inbox_max_id: number

Position up to which all incoming messages are read.

read_outbox_max_id: number

Position up to which all outgoing messages are read.

optional
short: true

Whether this constructor is a reduced version of the full topic information.
If set, only the my, closed, id, date, title, icon_color, icon_emoji_id and from_id parameters will contain valid information.
Reduced info is usually only returned in topic-related admin log events » and in the messages.channelMessages constructor: if needed, full information can be fetched using channels.getForumTopicsByID.

title: string

Topic title

top_message: number

ID of the last message that was sent to this topic

unread_count: number

Number of unread messages

unread_mentions_count: number

Number of unread mentions

unread_reactions_count: number

Number of unread reactions to messages you sent

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc