Skip to content

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

Class: PaidMediaPhoto

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

The paid media is a photo.

Documentation

Constructors

Constructor

new PaidMediaPhoto(payload): PaidMediaPhoto

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

Parameters

ParameterType
payloadTelegramPaidMediaPhoto

Returns

PaidMediaPhoto

Properties

PropertyTypeDefined in
payloadTelegramPaidMediaPhotocontexts/index.d.ts:1930

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

Returns

string


photo

Get Signature

get photo(): PhotoAttachment

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

The photo

Returns

PhotoAttachment


type

Get Signature

get type(): "photo"

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

Type of the paid media, always “photo”

Returns

"photo"