Package org.drinkless.tdlib
Class TdApi.SuggestedPostInfo
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.SuggestedPostInfo
- Enclosing class:
- TdApi
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes.boolean
True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren't sent when value of this field changes.static final int
Identifier uniquely determining type of the object.Price of the suggested post; may be null if the post is non-paid.int
Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet.State of the post. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about a suggested post.SuggestedPostInfo
(TdApi.SuggestedPostPrice price, int sendDate, TdApi.SuggestedPostState state, boolean canBeApproved, boolean canBeDeclined) Contains information about a suggested post. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
price
Price of the suggested post; may be null if the post is non-paid. -
sendDate
public int sendDatePoint in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet. -
state
State of the post. -
canBeApproved
public boolean canBeApprovedTrue, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes. -
canBeDeclined
public boolean canBeDeclinedTrue, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren't sent when value of this field changes. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SuggestedPostInfo
public 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
public SuggestedPostInfo(TdApi.SuggestedPostPrice price, int sendDate, TdApi.SuggestedPostState state, boolean canBeApproved, boolean canBeDeclined) 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:
price
- Price of the suggested post; may be null if the post is non-paid.sendDate
- Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet.state
- State of the post.canBeApproved
- True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes.canBeDeclined
- 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 Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-