Skip to content

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

Class: SuggestedPostInfo ​

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

Contains information about a suggested post.

Documentation

Constructors ​

Constructor ​

new SuggestedPostInfo(payload): SuggestedPostInfo

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

Parameters ​

ParameterType
payloadTelegramSuggestedPostInfo

Returns ​

SuggestedPostInfo

Properties ​

PropertyTypeDefined in
payloadTelegramSuggestedPostInfocontexts/index.d.ts:3007

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


price ​

Get Signature ​

get price(): SuggestedPostPrice

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

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

Optional. Proposed send date of the post.

Returns ​

number


state ​

Get Signature ​

get state(): TelegramSuggestedPostInfoState

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

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

Returns ​

TelegramSuggestedPostInfoState