Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PinMessageEvent

Specified message was pinned.

guides

Check official reference.

eventcategory

'action'

eventtype

'pin_message'

Hierarchy

  • EventObject<"action", "pin_message">
  • EventBase
  • Message
  • MessageDetail
  • PinnedMessage
    • PinMessageEvent

Index

Properties

authorSignature?: string

Signature of the post author for messages in channels

botId: number
category: "action"
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

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

pinnedMessage: any

Pinned message object. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.

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

type: "pin_message"
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