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

x/grm/mod.ts>tl.CustomMessage

MTProto API Client for Deno 🦕
Go to Latest
class tl.CustomMessage
extends SenderGetter
Re-export
import { tl } from "https://deno.land/x/grm@0.5.2/mod.ts";
const { CustomMessage } = tl;

Constructors

new
CustomMessage(args: MessageBaseInterface)

Properties

optional
_actionEntities: any
optional
_buttons: MessageButton[][]
optional
_buttonsCount: number
optional
_buttonsFlat: MessageButton[]
optional
_client: AbstractTelegramClient
optional
_entities: Map<string, Api.TypeEntity>
optional
_file: File
optional
_forward: Forward
optional
_inputSender: any
optional
_replyMessage: Api.Message
optional
_sender: any
optional
_text: string
optional
_viaBot: Api.TypeEntityLike
optional
_viaInputBot: Api.TypeEntityLike
readonly
actionEntities
readonly
audio
readonly
buttonCount
readonly
buttons
readonly
client
CONSTRUCTOR_ID: number
readonly
contact
date: number
readonly
dice
readonly
document
optional
editDate: number
optional
editHide: boolean
optional
entities: Api.TypeMessageEntity[]
readonly
file
readonly
forward
optional
forwards: number
optional
fromId: Api.TypePeer
optional
fromScheduled: boolean
optional
fwdFrom: Api.TypeMessageFwdHeader
readonly
game
readonly
geo
readonly
gif
optional
groupedId: bigInt.BigInteger
id: number
readonly
invoice
readonly
isReply: boolean
optional
legacy: boolean
optional
media: Api.TypeMessageMedia
optional
mediaUnread: boolean
optional
mentioned: boolean
message: string
optional
noforwards: boolean
originalArgs: any
optional
out: boolean
optional
patternMatch: RegExpMatchArray
peerId: Api.TypePeer
readonly
photo
optional
pinned: boolean
readonly
poll
optional
post: boolean
optional
postAuthor: string
rawText: string
optional
reactions: Api.MessageReactions
optional
replies: Api.TypeMessageReplies
optional
replyMarkup: Api.TypeReplyMarkup
optional
replyTo: Api.MessageReplyHeader
readonly
replyToMsgId
optional
restrictionReason: Api.TypeRestrictionReason[]
optional
silent: boolean
readonly
sticker
SUBCLASS_OF_ID: number
text: string
readonly
toId
optional
ttlPeriod: number
readonly
venue
readonly
viaBot
optional
viaBotId: bigInt.BigInteger
readonly
viaInputBot
readonly
video
readonly
videoNote
optional
views: number
readonly
voice
readonly
webPreview

Methods

_documentByAttribute(kind: Function, condition?: Function)
_finishInit(
entities: Map<string, Api.TypeEntity>,
inputChat?: Api.TypeEntityLike,
)
delete(unnamed 0?)
edit(params: Omit<EditMessageParams, "message">)
getEntitiesText(cls?: Function)
getReplyMessage(): Promise<Api.Message | undefined>
init(unnamed 0: MessageBaseInterface)

Static Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number