Skip to content

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.

Documentation

Constructors

Constructor

new PollMedia(payload): PollMedia

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

Parameters

ParameterType
payloadTelegramPollMedia

Returns

PollMedia

Properties

PropertyTypeDefined in
payloadTelegramPollMediacontexts/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

AnimationAttachment


audio

Get Signature

get audio(): AudioAttachment

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

Media is an audio file, information about the file

Returns

AudioAttachment


document

Get Signature

get document(): DocumentAttachment

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

Media is a general file, information about the file

Returns

DocumentAttachment


Get Signature

get link(): Link

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

The HTTP link attached to the poll option

Returns

Link


livePhoto

Get Signature

get livePhoto(): LivePhotoAttachment

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

Media is a live photo, information about the live photo

Returns

LivePhotoAttachment


location

Get Signature

get location(): Location

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

Media is a shared location, information about the location

Returns

Location


photo

Get Signature

get photo(): PhotoSize[]

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

Media is a photo, available sizes of the photo

Returns

PhotoSize[]


sticker

Get Signature

get sticker(): StickerAttachment

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

Media is a sticker, information about the sticker

Returns

StickerAttachment


venue

Get Signature

get venue(): Venue

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

Media is a venue, information about the venue

Returns

Venue


video

Get Signature

get video(): VideoAttachment

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

Media is a video, information about the video

Returns

VideoAttachment