Package org.drinkless.tdlib
Class TdApi.MessageSendOptions
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageSendOptions
- Enclosing class:
- TdApi
Options to be used when a message is sent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only.static final int
Identifier uniquely determining type of the object.boolean
Pass true to disable notification for the message.long
Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats.boolean
Pass true if the message is sent from the background.boolean
Pass true to get a fake message instead of actually sending them.long
The number of Telegram Stars the user agreed to pay to send the messages.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
ConstructorsConstructorDescriptionOptions to be used when a message is sent.MessageSendOptions
(boolean disableNotification, boolean fromBackground, boolean protectContent, boolean allowPaidBroadcast, long paidMessageStarCount, boolean updateOrderOfInstalledStickerSets, TdApi.MessageSchedulingState schedulingState, long effectId, int sendingId, boolean onlyPreview) Options to be used when a message is sent. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
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. -
allowPaidBroadcast
public boolean allowPaidBroadcastPass true to allow the message to ignore regular broadcast limits for a small fee; for bots only. -
paidMessageStarCount
public long paidMessageStarCountThe number of Telegram Stars the user agreed to pay to send the messages. -
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, to a chat with paid messages, live location messages and self-destructing messages can't be scheduled. -
effectId
public long effectIdIdentifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats. -
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. -
onlyPreview
public boolean onlyPreviewPass true to get a fake message instead of actually sending them. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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 allowPaidBroadcast, long paidMessageStarCount, boolean updateOrderOfInstalledStickerSets, TdApi.MessageSchedulingState schedulingState, long effectId, int sendingId, boolean onlyPreview) 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.protectContent
- Pass true if the content of the message must be protected from forwarding and saving; for bots only.allowPaidBroadcast
- Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only.paidMessageStarCount
- The number of Telegram Stars the user agreed to pay to send the messages.updateOrderOfInstalledStickerSets
- 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
- Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, to a chat with paid messages, live location messages and self-destructing messages can't be scheduled.effectId
- Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats.sendingId
- Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.onlyPreview
- Pass true to get a fake message instead of actually sending them.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-