Package org.drinkless.tdlib
Class TdApi.MessageSendOptions
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.MessageSendOptions
-
- Enclosing class:
- TdApi
public static class TdApi.MessageSendOptions extends TdApi.Object
Options to be used when a message is sent.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleandisableNotificationPass true to disable notification for the message.booleanfromBackgroundPass true if the message is sent from the background.TdApi.MessageSchedulingStateschedulingStateMessage scheduling state; pass null to send message immediately.
-
Constructor Summary
Constructors Constructor Description MessageSendOptions()Options to be used when a message is sent.MessageSendOptions(boolean disableNotification, boolean fromBackground, TdApi.MessageSchedulingState schedulingState)Options to be used when a message is sent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
disableNotification
public boolean disableNotification
Pass true to disable notification for the message.
-
fromBackground
public boolean fromBackground
Pass true if the message is sent from the background.
-
schedulingState
public TdApi.MessageSchedulingState schedulingState
Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageSendOptions
public MessageSendOptions()
Options to be used when a message is sent.
-
MessageSendOptions
public MessageSendOptions(boolean disableNotification, boolean fromBackground, TdApi.MessageSchedulingState schedulingState)Options to be used when a message is sent.- Parameters:
disableNotification- Pass true to disable notification for the message.fromBackground- Pass true if the message is sent from the background.schedulingState- Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-