Skip to content

GramIO API Reference / @gramio/contexts/dist / ExternalReplyInfo

Class: ExternalReplyInfo

Defined in: contexts/index.d.ts:1831

This object contains information about a message that is being replied to, which may come from another chat or forum topic.

Constructors

Constructor

new ExternalReplyInfo(payload): ExternalReplyInfo

Defined in: contexts/index.d.ts:1833

Parameters

ParameterType
payloadTelegramExternalReplyInfo

Returns

ExternalReplyInfo

Properties

PropertyTypeDefined in
payloadTelegramExternalReplyInfocontexts/index.d.ts:1832

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:1835

MDN

Returns

string


animation

Get Signature

get animation(): AnimationAttachment

Defined in: contexts/index.d.ts:1846

Message is an animation, information about the animation

Returns

AnimationAttachment


audio

Get Signature

get audio(): AudioAttachment

Defined in: contexts/index.d.ts:1848

Message is an audio file, information about the file

Returns

AudioAttachment


chat

Get Signature

get chat(): Chat

Defined in: contexts/index.d.ts:1839

Chat the original message belongs to. Available only if the chat is a supergroup or a channel.

Returns

Chat


checklist

Get Signature

get checklist(): Checklist

Defined in: contexts/index.d.ts:1844

Returns

Checklist


contact

Get Signature

get contact(): ContactAttachment

Defined in: contexts/index.d.ts:1866

Message is a shared contact, information about the contact

Returns

ContactAttachment


dice

Get Signature

get dice(): Dice

Defined in: contexts/index.d.ts:1868

Message is a dice with random value

Returns

Dice


document

Get Signature

get document(): DocumentAttachment

Defined in: contexts/index.d.ts:1850

Message is a general file, information about the file

Returns

DocumentAttachment


game

Get Signature

get game(): Game

Defined in: contexts/index.d.ts:1870

Message is a game, information about the game

Returns

Game


giveaway

Get Signature

get giveaway(): Giveaway

Defined in: contexts/index.d.ts:1872

Message is a scheduled giveaway, information about the giveaway

Returns

Giveaway


giveawayWinners

Get Signature

get giveawayWinners(): GiveawayWinners

Defined in: contexts/index.d.ts:1874

A giveaway with public winners was completed

Returns

GiveawayWinners


invoice

Get Signature

get invoice(): Invoice

Defined in: contexts/index.d.ts:1876

Message is an invoice for a payment, information about the invoice

Returns

Invoice


linkPreviewOptions

Get Signature

get linkPreviewOptions(): LinkPreviewOptions

Defined in: contexts/index.d.ts:1843

Options used for link preview generation for the original message, if it is a text message

Returns

LinkPreviewOptions


location

Get Signature

get location(): Location

Defined in: contexts/index.d.ts:1878

Message is a shared location, information about the location

Returns

Location


messageId

Get Signature

get messageId(): number

Defined in: contexts/index.d.ts:1841

Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.

Returns

number


origin

Get Signature

get origin(): MessageOriginUser | MessageOriginChat | MessageOriginChannel | MessageOriginHiddenUser

Defined in: contexts/index.d.ts:1837

Origin of the message replied to by the given message

Returns

MessageOriginUser | MessageOriginChat | MessageOriginChannel | MessageOriginHiddenUser


paidMedia

Get Signature

get paidMedia(): PaidMediaInfo

Defined in: contexts/index.d.ts:1883

Returns

PaidMediaInfo


photo

Get Signature

get photo(): PhotoAttachment

Defined in: contexts/index.d.ts:1852

Message is a photo, available sizes of the photo

Returns

PhotoAttachment


poll

Get Signature

get poll(): Poll

Defined in: contexts/index.d.ts:1880

Message is a native poll, information about the poll

Returns

Poll


sticker

Get Signature

get sticker(): StickerAttachment

Defined in: contexts/index.d.ts:1854

Message is a sticker, information about the sticker

Returns

StickerAttachment


story

Get Signature

get story(): StoryAttachment

Defined in: contexts/index.d.ts:1856

Message is a forwarded story

Returns

StoryAttachment


venue

Get Signature

get venue(): Venue

Defined in: contexts/index.d.ts:1882

Message is a venue, information about the venue

Returns

Venue


video

Get Signature

get video(): VideoAttachment

Defined in: contexts/index.d.ts:1858

Message is a video, information about the video

Returns

VideoAttachment


videoNote

Get Signature

get videoNote(): VideoNoteAttachment

Defined in: contexts/index.d.ts:1860

Message is a video note, information about the video message

Returns

VideoNoteAttachment


voice

Get Signature

get voice(): VoiceAttachment

Defined in: contexts/index.d.ts:1862

Message is a voice message, information about the file

Returns

VoiceAttachment

Methods

hasMediaSpoiler()

hasMediaSpoiler(): true

Defined in: contexts/index.d.ts:1864

true, if the message media is covered by a spoiler animation

Returns

true