Class TdApi.DeclineSuggestedPost

Enclosing class:
TdApi

public static class TdApi.DeclineSuggestedPost extends TdApi.Function<TdApi.Ok>
Declines 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.
    Comment for the creator of the suggested post; 0-128 characters.
    static final int
    Identifier uniquely determining type of the object.
    long
    Identifier of the message with the suggested post.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which declines a suggested post in a channel direct messages chat.
    DeclineSuggestedPost(long chatId, long messageId, String comment)
    Creates a function, which declines 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.canBeDeclined to check whether the suggested post can be declined.
    • comment

      public String comment
      Comment for the creator of the suggested post; 0-128 characters.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • DeclineSuggestedPost

      public DeclineSuggestedPost()
      Default constructor for a function, which declines a suggested post in a channel direct messages chat.

      Returns Ok

    • DeclineSuggestedPost

      public DeclineSuggestedPost(long chatId, long messageId, String comment)
      Creates a function, which declines 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.canBeDeclined to check whether the suggested post can be declined.
      comment - Comment for the creator of the suggested post; 0-128 characters.
  • 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