List of all members | Public Fields | Public Instance Methods | Static Public Attributes
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 Fields

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'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'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.
 

Public Instance Methods

 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 Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ suggestedPostInfo() [1/2]

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.

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