Skip to content

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

Class: PaidMediaPreview

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

The paid media isn't available before the payment.

Documentation

Constructors

Constructor

new PaidMediaPreview(payload): PaidMediaPreview

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

Parameters

ParameterType
payloadTelegramPaidMediaPreview

Returns

PaidMediaPreview

Properties

PropertyTypeDefined in
payloadTelegramPaidMediaPreviewcontexts/index.d.ts:1968

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


duration

Get Signature

get duration(): number

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

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

Optional. Media height as defined by the sender

Returns

number


type

Get Signature

get type(): "preview"

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

Type of the paid media, always “preview”

Returns

"preview"


width

Get Signature

get width(): number

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

Optional. Media width as defined by the sender

Returns

number