Skip to content

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

Class: PaidMediaPhoto

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

The paid media is a photo.

Documentation

Constructors

Constructor

new PaidMediaPhoto(payload): PaidMediaPhoto

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

Parameters

ParameterType
payloadTelegramPaidMediaPhoto

Returns

PaidMediaPhoto

Properties

PropertyTypeDefined in
payloadTelegramPaidMediaPhotocontexts/index.d.ts:1752

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


photo

Get Signature

get photo(): PhotoAttachment

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

The photo

Returns

PhotoAttachment


type

Get Signature

get type(): "photo"

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

Type of the paid media, always “photo”

Returns

"photo"