Package org.drinkless.tdlib
Class TdApi.ApproveSuggestedPost
- Enclosing class:
- TdApi
Approves a suggested post in a channel direct messages chat.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Chat identifier of the channel direct messages chat.static final int
Identifier uniquely determining type of the object.long
Identifier of the message with the suggested post.int
Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which approves a suggested post in a channel direct messages chat.ApproveSuggestedPost
(long chatId, long messageId, int sendDate) Creates a function, which approves a suggested post in a channel direct messages chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier of the channel direct messages chat. -
messageId
public long messageIdIdentifier of the message with the suggested post. Use messageProperties.canBeApproved to check whether the suggested post can be approved. -
sendDate
public int sendDatePoint in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified, then the date must be in the future, but at most getOption("suggested_post_send_delay_max") seconds in the future. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ApproveSuggestedPost
public ApproveSuggestedPost()Default constructor for a function, which approves a suggested post in a channel direct messages chat.Returns
Ok
-
ApproveSuggestedPost
public ApproveSuggestedPost(long chatId, long messageId, int sendDate) Creates a function, which approves a suggested post in a channel direct messages chat.Returns
Ok
- Parameters:
chatId
- Chat identifier of the channel direct messages chat.messageId
- Identifier of the message with the suggested post. Use messageProperties.canBeApproved to check whether the suggested post can be approved.sendDate
- Point in time (Unix timestamp) when the post is expected to be published; pass 0 if the date has already been chosen. If specified, then the date must be in the future, but at most getOption("suggested_post_send_delay_max") seconds in the future.
-
-
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
-