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 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.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR