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

x/mtkruto/3_types.ts>_MessageBase

Cross-runtime JavaScript library for building Telegram clients
Latest
interface _MessageBase
import { type _MessageBase } from "https://deno.land/x/mtkruto@0.6.2/3_types.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: ForwardHeader

Information on the original message.

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

The identifier of a business conection that the message was sent in.

optional
senderBoostCount: number

The number of the boosts made by the sender of the message.

optional
viaBusinessBot: User

The identifier of the business connection in which the message was sent.

optional
effectId: string

The identifier of the message effect that has been attached to the message.

optional
scheduled: boolean

Whether the message is scheduled.