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

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

Shortened constructor containing info on one new incoming text message from a chat

Constructors

new
UpdateShortChatMessage_(params: { out?: true; mentioned?: true; media_unread?: true; silent?: true; id: number; from_id: bigint; chat_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
chat_id: bigint

ID of the chat where the message was sent

date: number
optional
entities: Array<enums.MessageEntity>

Entities for styled text

from_id: bigint

ID of the sender of the message

optional
fwd_from: enums.MessageFwdHeader

Info about a forwarded message

id: number

ID of the message

optional
media_unread: true

Whether the message contains some unread mentions

optional
mentioned: true

Whether we were mentioned in this message

message: string

Message

optional
out: true

Whether the message is outgoing

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

Reply (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 updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.

optional
via_bot_id: bigint

Info about the inline bot used to generate this message

Static Properties

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