GramIO API Reference / @gramio/contexts/dist / SuggestedPostInfo
Class: SuggestedPostInfo
Defined in: contexts/index.d.ts:2714
Contains information about a suggested post.
Constructors
Constructor
new SuggestedPostInfo(
payload):SuggestedPostInfo
Defined in: contexts/index.d.ts:2716
Parameters
| Parameter | Type |
|---|---|
payload | TelegramSuggestedPostInfo |
Returns
SuggestedPostInfo
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramSuggestedPostInfo | contexts/index.d.ts:2715 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2718
Returns
string
price
Get Signature
get price():
SuggestedPostPrice
Defined in: contexts/index.d.ts:2726
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:2730
Optional. Proposed send date of the post.
Returns
number
state
Get Signature
get state():
TelegramSuggestedPostInfoState
Defined in: contexts/index.d.ts:2722
State of the suggested post. Currently, it can be one of "pending", "approved", "declined".