Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PhotoChannelPostEvent

Message is a photo.

guides

Check official reference.

eventcategory

'channel_post' | 'edit_channel_post'

eventtype

'photo'

Hierarchy

  • EventObject<"channel_post" | "edit_channel_post", "photo">
  • EventBase
  • ChannelPost
  • MessageDetail
  • Photo
  • FileDetail
  • Caption
    • PhotoChannelPostEvent

Index

Properties

authorSignature?: string

Signature of the post author for messages in channels

botId: number
caption?: string

Caption for the animation, audio, document, photo, video or voice, 0-1024 characters

category: "channel_post" | "edit_channel_post"
cationEntities?: any[]

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

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

fileId: string

Identifier for this file, which can be used to download or reuse the file

fileName?: string

Original filename as defined by sender if available

fileSize?: number

File size

fileUniqueId: string

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.

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

mimeType?: string

MIME type of the file as defined by sender

passportData?: any

Telegram Passport data

photo: any[]

Available sizes of the photo

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

thumb?: any

File thumbnail as defined by sender if available

type: "photo"
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: TelegramChatSender
viaBot?: RawUser

Bot through which the message was sent

Generated using TypeDoc