Class TdApi.ApproveSuggestedPost

Enclosing class:
TdApi

public static class TdApi.ApproveSuggestedPost extends TdApi.Function<TdApi.Ok>
Approves a suggested post in a channel direct messages chat.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    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

    Constructors
    Constructor
    Description
    Default 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Chat identifier of the channel direct messages chat.
    • messageId

      public long messageId
      Identifier of the message with the suggested post. Use messageProperties.canBeApproved to check whether the suggested post can be approved.
    • sendDate

      public int 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.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR