GramIO API Reference / @gramio/contexts/dist / PollMedia
Class: PollMedia
Defined in: contexts/index.d.ts:907
Describes media attached to a poll, poll option, or quiz explanation.
Constructors
Constructor
new PollMedia(
payload):PollMedia
Defined in: contexts/index.d.ts:909
Parameters
| Parameter | Type |
|---|---|
payload | TelegramPollMedia |
Returns
PollMedia
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPollMedia | contexts/index.d.ts:908 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:910
Returns
string
animation
Get Signature
get animation():
AnimationAttachment
Defined in: contexts/index.d.ts:912
Media is an animation, information about the animation
Returns
audio
Get Signature
get audio():
AudioAttachment
Defined in: contexts/index.d.ts:914
Media is an audio file, information about the file
Returns
document
Get Signature
get document():
DocumentAttachment
Defined in: contexts/index.d.ts:916
Media is a general file, information about the file
Returns
link
Get Signature
get link():
Link
Defined in: contexts/index.d.ts:918
The HTTP link attached to the poll option
Returns
livePhoto
Get Signature
get livePhoto():
LivePhotoAttachment
Defined in: contexts/index.d.ts:920
Media is a live photo, information about the live photo
Returns
location
Get Signature
get location():
Location
Defined in: contexts/index.d.ts:922
Media is a shared location, information about the location
Returns
photo
Get Signature
get photo():
PhotoSize[]
Defined in: contexts/index.d.ts:924
Media is a photo, available sizes of the photo
Returns
sticker
Get Signature
get sticker():
StickerAttachment
Defined in: contexts/index.d.ts:926
Media is a sticker, information about the sticker
Returns
venue
Get Signature
get venue():
Venue
Defined in: contexts/index.d.ts:928
Media is a venue, information about the venue
Returns
video
Get Signature
get video():
VideoAttachment
Defined in: contexts/index.d.ts:930
Media is a video, information about the video