Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextMessageEvent

A text message.

guides

Check official reference.

eventcategory

'message' | 'edit_message'

eventtype

'text'

Hierarchy

  • EventObject<"message" | "edit_message", "text">
  • EventBase
  • Message
  • MessageDetail
  • Text
    • TextMessageEvent

Index

Properties

authorSignature?: string

Signature of the post author for messages in channels

botId: number
category: "message" | "edit_message"
channel: TelegramChat
chat: RawChat

Conversation the message belongs to

connectedWebsite?: string

The domain name of the website on which the user has logged in.

date?: number

Date the message was sent in Unix time

editDate?: number

Date the message was last edited in Unix time

entities?: any[]

For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text

forwardDate?: number

For forwarded messages, date the original message was sent in Unix time

forwardFrom?: RawUser

For forwarded messages, sender of the original message

forwardFromChat?: RawChat

For messages forwarded from channels, information about the original channel

forwardFromMessageId?: number

For messages forwarded from channels, identifier of the original message in the channel

forwardSenderName?: string

Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages

forwardSignature?: string

For messages forwarded from channels, signature of the post author if present

from?: RawUser

Raw user object represent the sender, empty for messages sent to channels

mediaGroupId?: string

The unique identifier of a media message group this message belongs to

message: any
messageId: number

Unique message identifier inside this chat

passportData?: any

Telegram Passport data

platform: "telegram"
replyMarkup?: any

Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.

replyToMessage?: any

For replies, the original message. Note that the Message object in this field will not contain furth

text: string

The actual UTF-8 text of the message, 0-4096 characters

type: "text"
updateId: string

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.

user: TelegramUser | TelegramChatSender
viaBot?: RawUser

Bot through which the message was sent

Generated using TypeDoc