Skip to content

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

Class: PaidMediaPreview

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

The paid media isn't available before the payment.

Documentation

Constructors

Constructor

new PaidMediaPreview(payload): PaidMediaPreview

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

Parameters

ParameterType
payloadTelegramPaidMediaPreview

Returns

PaidMediaPreview

Properties

PropertyTypeDefined in
payloadTelegramPaidMediaPreviewcontexts/index.d.ts:1790

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


duration

Get Signature

get duration(): number

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

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

Optional. Media height as defined by the sender

Returns

number


type

Get Signature

get type(): "preview"

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

Type of the paid media, always “preview”

Returns

"preview"


width

Get Signature

get width(): number

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

Optional. Media width as defined by the sender

Returns

number