public static class TdApi.SendMessageOptions extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableNotification
Pass true to disable notification for the message.
|
boolean |
fromBackground
Pass true if the message is sent from the background.
|
TdApi.MessageSchedulingState |
schedulingState
Message scheduling state.
|
Constructor and Description |
---|
SendMessageOptions()
Options to be used when a message is send.
|
SendMessageOptions(boolean disableNotification,
boolean fromBackground,
TdApi.MessageSchedulingState schedulingState)
Options to be used when a message is send.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean disableNotification
public boolean fromBackground
public TdApi.MessageSchedulingState schedulingState
public static final int CONSTRUCTOR
public SendMessageOptions()
public SendMessageOptions(boolean disableNotification, boolean fromBackground, TdApi.MessageSchedulingState schedulingState)
disableNotification
- Pass true to disable notification for the message. Must be false if the message is sent to a secret chat.fromBackground
- Pass true if the message is sent from the background.schedulingState
- Message scheduling state. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled.public int getConstructor()
getConstructor
in class TdApi.Object