tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::suggestedPostInfo Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::suggestedPostInfo:
td::td_api::Object td::TlObject

Public Member Functions

 suggestedPostInfo ()
 
 suggestedPostInfo (object_ptr< SuggestedPostPrice > &&price_, int32 send_date_, object_ptr< SuggestedPostState > &&state_, bool can_be_approved_, bool can_be_declined_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< SuggestedPostPriceprice_
 Price of the suggested post; may be null if the post is non-paid.
 
int32 send_date_
 Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn&#x27;t set yet.
 
object_ptr< SuggestedPostStatestate_
 State of the post.
 
bool can_be_approved_
 True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren&#x27;t sent when value of this field changes.
 
bool can_be_declined_
 True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren&#x27;t sent when value of this field changes.
 

Static Public Attributes

static const std::int32_t ID = -1088331710
 Identifier uniquely determining a type of the object.
 

Detailed Description

Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message and suggested post information to suggest message changes. Use addOffer to suggest price or time changes.

Definition at line 70886 of file td_api.h.

Constructor & Destructor Documentation

◆ suggestedPostInfo() [1/2]

td::td_api::suggestedPostInfo::suggestedPostInfo ( )

Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message and suggested post information to suggest message changes. Use addOffer to suggest price or time changes.

◆ suggestedPostInfo() [2/2]

td::td_api::suggestedPostInfo::suggestedPostInfo ( object_ptr< SuggestedPostPrice > &&  price_,
int32  send_date_,
object_ptr< SuggestedPostState > &&  state_,
bool  can_be_approved_,
bool  can_be_declined_ 
)

Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message and suggested post information to suggest message changes. Use addOffer to suggest price or time changes.

Parameters
[in]price_Price of the suggested post; may be null if the post is non-paid.
[in]send_date_Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn&#x27;t set yet.
[in]state_State of the post.
[in]can_be_approved_True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren&#x27;t sent when value of this field changes.
[in]can_be_declined_True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren&#x27;t sent when value of this field changes.

Member Function Documentation

◆ store()

void td::td_api::suggestedPostInfo::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ can_be_approved_

bool td::td_api::suggestedPostInfo::can_be_approved_

True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren&#x27;t sent when value of this field changes.

Definition at line 70903 of file td_api.h.

◆ can_be_declined_

bool td::td_api::suggestedPostInfo::can_be_declined_

True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren&#x27;t sent when value of this field changes.

Definition at line 70905 of file td_api.h.

◆ ID

const std::int32_t td::td_api::suggestedPostInfo::ID = -1088331710
static

Identifier uniquely determining a type of the object.

Definition at line 70924 of file td_api.h.

◆ price_

object_ptr<SuggestedPostPrice> td::td_api::suggestedPostInfo::price_

Price of the suggested post; may be null if the post is non-paid.

Definition at line 70897 of file td_api.h.

◆ send_date_

int32 td::td_api::suggestedPostInfo::send_date_

Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn&#x27;t set yet.

Definition at line 70899 of file td_api.h.

◆ state_

object_ptr<SuggestedPostState> td::td_api::suggestedPostInfo::state_

State of the post.

Definition at line 70901 of file td_api.h.


The documentation for this class was generated from the following file: