Skip to content

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

Class: ExternalReplyInfo

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

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:2214

Parameters

ParameterType
payloadTelegramExternalReplyInfo

Returns

ExternalReplyInfo

Properties

PropertyTypeDefined in
payloadTelegramExternalReplyInfocontexts/index.d.ts:2213

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


animation

Get Signature

get animation(): AnimationAttachment

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

Message is an animation, information about the animation

Returns

AnimationAttachment


audio

Get Signature

get audio(): AudioAttachment

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

Message is an audio file, information about the file

Returns

AudioAttachment


chat

Get Signature

get chat(): Chat

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

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:2225

Returns

Checklist


contact

Get Signature

get contact(): ContactAttachment

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

Message is a shared contact, information about the contact

Returns

ContactAttachment


dice

Get Signature

get dice(): Dice

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

Message is a dice with random value

Returns

Dice


document

Get Signature

get document(): DocumentAttachment

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

Message is a general file, information about the file

Returns

DocumentAttachment


game

Get Signature

get game(): Game

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

Message is a game, information about the game

Returns

Game


giveaway

Get Signature

get giveaway(): Giveaway

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

Message is a scheduled giveaway, information about the giveaway

Returns

Giveaway


giveawayWinners

Get Signature

get giveawayWinners(): GiveawayWinners

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

A giveaway with public winners was completed

Returns

GiveawayWinners


invoice

Get Signature

get invoice(): Invoice

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

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:2224

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

Returns

LinkPreviewOptions


livePhoto

Get Signature

get livePhoto(): LivePhotoAttachment

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

Message is a live photo, information about the live photo

Returns

LivePhotoAttachment


location

Get Signature

get location(): Location

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

Message is a shared location, information about the location

Returns

Location


messageId

Get Signature

get messageId(): number

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

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:2218

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:2266

Returns

PaidMediaInfo


photo

Get Signature

get photo(): PhotoAttachment

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

Message is a photo, available sizes of the photo

Returns

PhotoAttachment


poll

Get Signature

get poll(): Poll

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

Message is a native poll, information about the poll

Returns

Poll


sticker

Get Signature

get sticker(): StickerAttachment

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

Message is a sticker, information about the sticker

Returns

StickerAttachment


story

Get Signature

get story(): StoryAttachment

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

Message is a forwarded story

Returns

StoryAttachment


venue

Get Signature

get venue(): Venue

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

Message is a venue, information about the venue

Returns

Venue


video

Get Signature

get video(): VideoAttachment

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

Message is a video, information about the video

Returns

VideoAttachment


videoNote

Get Signature

get videoNote(): VideoNoteAttachment

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

Message is a video note, information about the video message

Returns

VideoNoteAttachment


voice

Get Signature

get voice(): VoiceAttachment

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

Message is a voice message, information about the file

Returns

VoiceAttachment

Methods

hasMediaSpoiler()

hasMediaSpoiler(): true

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

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

Returns

true