java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.MessageSendOptions
- Enclosing class:
- TdApi
Options to be used when a message is sent.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
Pass true to disable notification for the message.boolean
Pass true if the message is sent from the background.boolean
Pass true if the content of the message must be protected from forwarding and saving; for bots only.Message scheduling state; pass null to send message immediately.int
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.boolean
Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum. -
Constructor Summary
ConstructorDescriptionOptions to be used when a message is sent.MessageSendOptions
(boolean disableNotification, boolean fromBackground, boolean protectContent, boolean updateOrderOfInstalledStickerSets, TdApi.MessageSchedulingState schedulingState, int sendingId) Options to be used when a message is sent.MessageSendOptions
(DataInput input) Options to be used when a message is sent. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
disableNotification
public boolean disableNotificationPass true to disable notification for the message. -
fromBackground
public boolean fromBackgroundPass true if the message is sent from the background. -
protectContent
public boolean protectContentPass true if the content of the message must be protected from forwarding and saving; for bots only. -
updateOrderOfInstalledStickerSets
public boolean updateOrderOfInstalledStickerSetsPass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum. -
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. -
sendingId
public int sendingIdNon-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
MessageSendOptions
public MessageSendOptions()Options to be used when a message is sent. -
MessageSendOptions
public MessageSendOptions(boolean disableNotification, boolean fromBackground, boolean protectContent, boolean updateOrderOfInstalledStickerSets, TdApi.MessageSchedulingState schedulingState, int sendingId) Options to be used when a message is sent.- Parameters:
disableNotification
- boolean Pass true to disable notification for the message.fromBackground
- boolean Pass true if the message is sent from the background.protectContent
- boolean Pass true if the content of the message must be protected from forwarding and saving; for bots only.updateOrderOfInstalledStickerSets
- boolean Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum.schedulingState
- MessageSchedulingState 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.sendingId
- int Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.
-
MessageSendOptions
Options to be used when a message is sent.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-