Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class Message
extends _TypeMessage
import { Message } from "https://deno.land/x/mtkruto@0.0.999/tl/2_types.ts";

Constructors

new
Message(params: { out?: true; mentioned?: true; mediaUnread?: true; silent?: true; post?: true; fromScheduled?: true; legacy?: true; editHide?: true; pinned?: true; noforwards?: true; id: number; fromId?: TypePeer; peerId: TypePeer; fwdFrom?: TypeMessageFwdHeader; viaBotId?: bigint; replyTo?: TypeMessageReplyHeader; date: number; message: string; media?: TypeMessageMedia; replyMarkup?: TypeReplyMarkup; entities?: Array<TypeMessageEntity>; views?: number; forwards?: number; replies?: TypeMessageReplies; editDate?: number; postAuthor?: string; groupedId?: bigint; reactions?: TypeMessageReactions; restrictionReason?: Array<TypeRestrictionReason>; ttlPeriod?: number; })

Properties

protected
readonly
[id]
protected
readonly
[params]: Params
date: number
optional
editDate: number
optional
editHide: true
optional
entities: Array<TypeMessageEntity>
optional
forwards: number
optional
fromId: TypePeer
optional
fromScheduled: true
optional
fwdFrom: TypeMessageFwdHeader
optional
groupedId: bigint
id: number
optional
legacy: true
optional
media: TypeMessageMedia
optional
mediaUnread: true
optional
mentioned: true
message: string
optional
noforwards: true
optional
out: true
peerId: TypePeer
optional
pinned: true
optional
post: true
optional
postAuthor: string
optional
reactions: TypeMessageReactions
optional
replies: TypeMessageReplies
optional
replyMarkup: TypeReplyMarkup
optional
replyTo: TypeMessageReplyHeader
optional
restrictionReason: Array<TypeRestrictionReason>
optional
silent: true
optional
ttlPeriod: number
optional
viaBotId: bigint
optional
views: number

Static Properties

readonly
[paramDesc]: ParamDesc