Skip to main content
Module

x/mtkruto/mod.ts>_MessageBase

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface _MessageBase
import { type _MessageBase } from "https://deno.land/x/mtkruto@0.1.702/mod.ts";

Properties shared between all message types.

Properties

out: boolean

Whether the message is outgoing (sent by the current user).

id: number

The identifier of the message.

optional
threadId: number

The identifier of the message's thread.

optional
from: User

The user who sent the message.

optional
senderChat: ChatP

The chat which the message was sent on behalf of.

date: Date

The point in time in which the message was sent.

chat: ChatP

The chat where the message was sent to.

optional
forwardFrom: User

The original sender of the message.

optional
forwardFromChat: ChatP

The original chat of the message.

optional
forwardId: number

The original identifier of the message.

optional
forwardSignature: string

The original signature of the message.

optional
forwardSenderName: string

The name of the original sender of the message.

optional
forwardDate: Date

The point in time in which the original message was sent.

isTopicMessage: boolean

Whether the message was sent in a topic thread.

optional
isAutomaticForward: boolean

Whether the message is an automatic forward.

optional
replyToMessage: Message

The message that is being replied to. Not always available even if a message is being replied to.

optional
replyToMessageId: number

The identifier of the message that is being replied to.

optional
reactions: MessageReaction[]

The reactions of the message.

optional
replyQuote: ReplyQuote

The part of the message that is being replied to.

optional
viaBot: User

The inline bot that was used to send this message.

optional
editDate: Date

The point in time in which the message's last edit was made.

optional
hasProtectedContent: boolean

Whether the contents of the message is protected.

optional
mediaGroupId: string

The identifier of the message's media group.

optional
authorSignature: string

The signature of the message.

optional
views: number

The number of times the message was viewed.

optional
forwards: number

The number of times the message was forwarded.

optional
replyMarkup: ReplyMarkup

The message's reply markup.

optional
businessConnectionId: string
optional
senderBoostCount: number
optional
viaBusinessBot: User