TDLib
Loading...
Searching...
No Matches
suggestedPostInfo Class Referencefinal

Inherits Object.

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.

Public Member Functions

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

Public Attributes

bool can_be_approved_
 True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren'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't sent when value of this field changes.
object_ptr< SuggestedPostPrice > price_
 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't set yet.
object_ptr< SuggestedPostState > state_
 State of the post.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ suggestedPostInfo() [1/2]

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]

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'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'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't sent when value of this field changes.

Member Function Documentation

◆ store()

void 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 TlObject.


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