Skip to content

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

Class: PaidMediaPreview

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

The paid media isn't available before the payment.

Documentation

Constructors

Constructor

new PaidMediaPreview(payload): PaidMediaPreview

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

Parameters

ParameterType
payloadTelegramPaidMediaPreview

Returns

PaidMediaPreview

Properties

PropertyTypeDefined in
payloadTelegramPaidMediaPreviewcontexts/index.d.ts:2156

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


duration

Get Signature

get duration(): number

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

Optional. Duration of the media in seconds as defined by the sender

Returns

number


height

Get Signature

get height(): number

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

Optional. Media height as defined by the sender

Returns

number


type

Get Signature

get type(): "preview"

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

Type of the paid media, always “preview”

Returns

"preview"


width

Get Signature

get width(): number

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

Optional. Media width as defined by the sender

Returns

number