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>Dialog_

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

Chat

Constructors

new
Dialog_(params: { pinned?: true; unread_mark?: true; view_forum_as_messages?: true; peer: enums.Peer; top_message: number; read_inbox_max_id: number; read_outbox_max_id: number; unread_count: number; unread_mentions_count: number; unread_reactions_count: number; notify_settings: enums.PeerNotifySettings; pts?: number; draft?: enums.DraftMessage; folder_id?: number; ttl_period?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
draft: enums.DraftMessage

Message draft

notify_settings: enums.PeerNotifySettings

Notification settings

peer: enums.Peer

The chat

optional
pinned: true

Is the dialog pinned

optional
pts: number
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.

top_message: number

The latest message ID

optional
ttl_period: number

Time-to-live of all messages sent in this dialog

unread_count: number

Number of unread messages

optional
unread_mark: true

Whether the chat was manually marked as unread

unread_mentions_count: number

Number of unread mentions

unread_reactions_count: number

Number of unread reactions to messages you sent

optional
view_forum_as_messages: true

Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag.

Static Properties

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