Class TdApi.ToggleDirectMessagesChatTopicCanSendUnpaidMessages

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ToggleDirectMessagesChatTopicCanSendUnpaidMessages
Enclosing class:
TdApi

public static class TdApi.ToggleDirectMessagesChatTopicCanSendUnpaidMessages extends TdApi.Function<TdApi.Ok>
Allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Pass true to allow unpaid messages; pass false to disallow unpaid messages.
    long
    Chat identifier.
    static final int
    Identifier uniquely determining type of the object.
    boolean
    Pass true to refund the user previously paid messages.
    long
    Identifier of the topic.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.
    ToggleDirectMessagesChatTopicCanSendUnpaidMessages(long chatId, long topicId, boolean canSendUnpaidMessages, boolean refundPayments)
    Creates a function, which allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.
  • 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.
    • topicId

      public long topicId
      Identifier of the topic.
    • canSendUnpaidMessages

      public boolean canSendUnpaidMessages
      Pass true to allow unpaid messages; pass false to disallow unpaid messages.
    • refundPayments

      public boolean refundPayments
      Pass true to refund the user previously paid messages.
    • CONSTRUCTOR

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

    • ToggleDirectMessagesChatTopicCanSendUnpaidMessages

      public ToggleDirectMessagesChatTopicCanSendUnpaidMessages()
      Default constructor for a function, which allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.

      Returns Ok

    • ToggleDirectMessagesChatTopicCanSendUnpaidMessages

      public ToggleDirectMessagesChatTopicCanSendUnpaidMessages(long chatId, long topicId, boolean canSendUnpaidMessages, boolean refundPayments)
      Creates a function, which allows to send unpaid messages to the given topic of the channel direct messages chat administered by the current user.

      Returns Ok

      Parameters:
      chatId - Chat identifier.
      topicId - Identifier of the topic.
      canSendUnpaidMessages - Pass true to allow unpaid messages; pass false to disallow unpaid messages.
      refundPayments - Pass true to refund the user previously paid messages.
  • 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