Skip to content

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

Class: SuggestedPostInfo

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

Contains information about a suggested post.

Documentation

Constructors

Constructor

new SuggestedPostInfo(payload): SuggestedPostInfo

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

Parameters

ParameterType
payloadTelegramSuggestedPostInfo

Returns

SuggestedPostInfo

Properties

PropertyTypeDefined in
payloadTelegramSuggestedPostInfocontexts/index.d.ts:2732

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string


price

Get Signature

get price(): SuggestedPostPrice

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

Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.

Returns

SuggestedPostPrice


sendDate

Get Signature

get sendDate(): number

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

Optional. Proposed send date of the post.

Returns

number


state

Get Signature

get state(): TelegramSuggestedPostInfoState

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

State of the suggested post. Currently, it can be one of "pending", "approved", "declined".

Returns

TelegramSuggestedPostInfoState