Package org.drinkless.tdlib
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
FieldsModifier and TypeFieldDescriptionbooleanPass true to allow unpaid messages; pass false to disallow unpaid messages.longChat identifier.static final intIdentifier uniquely determining type of the object.booleanPass true to refund the user previously paid messages.longIdentifier of the topic. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns 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. -
topicId
public long topicIdIdentifier of the topic. -
canSendUnpaidMessages
public boolean canSendUnpaidMessagesPass true to allow unpaid messages; pass false to disallow unpaid messages. -
refundPayments
public boolean refundPaymentsPass true to refund the user previously paid messages. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-