GramIO API Reference / @gramio/contexts/dist / SuggestedPostInfo
Class: SuggestedPostInfo
Defined in: contexts/index.d.ts:2731
Contains information about a suggested post.
Constructors
Constructor
new SuggestedPostInfo(
payload):SuggestedPostInfo
Defined in: contexts/index.d.ts:2733
Parameters
| Parameter | Type |
|---|---|
payload | TelegramSuggestedPostInfo |
Returns
SuggestedPostInfo
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramSuggestedPostInfo | contexts/index.d.ts:2732 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2735
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
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".