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
| Parameter | Type |
|---|---|
payload | TelegramExternalReplyInfo |
Returns
ExternalReplyInfo
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramExternalReplyInfo | contexts/index.d.ts:1832 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:1835
Returns
string
animation
Get Signature
get animation():
AnimationAttachment
Defined in: contexts/index.d.ts:1846
Message is an animation, information about the animation
Returns
audio
Get Signature
get audio():
AudioAttachment
Defined in: contexts/index.d.ts:1848
Message is an audio file, information about the file
Returns
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
checklist
Get Signature
get checklist():
Checklist
Defined in: contexts/index.d.ts:1844
Returns
contact
Get Signature
get contact():
ContactAttachment
Defined in: contexts/index.d.ts:1866
Message is a shared contact, information about the contact
Returns
dice
Get Signature
get dice():
Dice
Defined in: contexts/index.d.ts:1868
Message is a dice with random value
Returns
document
Get Signature
get document():
DocumentAttachment
Defined in: contexts/index.d.ts:1850
Message is a general file, information about the file
Returns
game
Get Signature
get game():
Game
Defined in: contexts/index.d.ts:1870
Message is a game, information about the game
Returns
giveaway
Get Signature
get giveaway():
Giveaway
Defined in: contexts/index.d.ts:1872
Message is a scheduled giveaway, information about the giveaway
Returns
giveawayWinners
Get Signature
get giveawayWinners():
GiveawayWinners
Defined in: contexts/index.d.ts:1874
A giveaway with public winners was completed
Returns
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
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
location
Get Signature
get location():
Location
Defined in: contexts/index.d.ts:1878
Message is a shared location, information about the location
Returns
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
photo
Get Signature
get photo():
PhotoAttachment
Defined in: contexts/index.d.ts:1852
Message is a photo, available sizes of the photo
Returns
poll
Get Signature
get poll():
Poll
Defined in: contexts/index.d.ts:1880
Message is a native poll, information about the poll
Returns
sticker
Get Signature
get sticker():
StickerAttachment
Defined in: contexts/index.d.ts:1854
Message is a sticker, information about the sticker
Returns
story
Get Signature
get story():
StoryAttachment
Defined in: contexts/index.d.ts:1856
Message is a forwarded story
Returns
venue
Get Signature
get venue():
Venue
Defined in: contexts/index.d.ts:1882
Message is a venue, information about the venue
Returns
video
Get Signature
get video():
VideoAttachment
Defined in: contexts/index.d.ts:1858
Message is a video, information about the video
Returns
videoNote
Get Signature
get videoNote():
VideoNoteAttachment
Defined in: contexts/index.d.ts:1860
Message is a video note, information about the video message
Returns
voice
Get Signature
get voice():
VoiceAttachment
Defined in: contexts/index.d.ts:1862
Message is a voice message, information about the file
Returns
Methods
hasMediaSpoiler()
hasMediaSpoiler():
true
Defined in: contexts/index.d.ts:1864
true, if the message media is covered by a spoiler animation
Returns
true