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

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

Info about a message sent to (received from) another user

Constructors

new
UpdateShortMessage_(params: { out?: true; mentioned?: true; media_unread?: true; silent?: true; id: number; user_id: bigint; message: string; pts: number; pts_count: number; date: number; fwd_from?: enums.MessageFwdHeader; via_bot_id?: bigint; reply_to?: enums.MessageReplyHeader; entities?: Array<enums.MessageEntity>; ttl_period?: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
date: number
optional
entities: Array<enums.MessageEntity>

Entities for styled text

optional
fwd_from: enums.MessageFwdHeader

Info about a forwarded message

id: number

The message ID

optional
media_unread: true

Whether there are some unread mentions in this message

optional
mentioned: true

Whether we were mentioned in the message

message: string

The message

optional
out: true

Whether the message is outgoing

pts: number
pts_count: number
optional
reply_to: enums.MessageReplyHeader

Reply and thread information

optional
silent: true

If true, the message is a silent message, no notifications should be triggered

optional
ttl_period: number

Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.

user_id: bigint

The ID of the sender (if outgoing will be the ID of the destination) of the message

optional
via_bot_id: bigint

Info about the inline bot used to generate this message

Static Properties

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