public static class TdApi.MessageSendOptions extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowPaidBroadcast
Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableNotification
Pass true to disable notification for the message.
|
long |
effectId
Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats.
|
boolean |
fromBackground
Pass true if the message is sent from the background.
|
boolean |
onlyPreview
Pass true to get a fake message instead of actually sending them.
|
boolean |
protectContent
Pass true if the content of the message must be protected from forwarding and saving; for bots only.
|
TdApi.MessageSchedulingState |
schedulingState
Message scheduling state; pass null to send message immediately.
|
int |
sendingId
Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.
|
boolean |
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.
|
| Constructor and Description |
|---|
MessageSendOptions()
Options to be used when a message is sent.
|
MessageSendOptions(boolean disableNotification,
boolean fromBackground,
boolean protectContent,
boolean allowPaidBroadcast,
boolean updateOrderOfInstalledStickerSets,
TdApi.MessageSchedulingState schedulingState,
long effectId,
int sendingId,
boolean onlyPreview)
Options to be used when a message is sent.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean disableNotification
public boolean fromBackground
public boolean protectContent
public boolean allowPaidBroadcast
public boolean updateOrderOfInstalledStickerSets
public TdApi.MessageSchedulingState schedulingState
public long effectId
public int sendingId
public boolean onlyPreview
public static final int CONSTRUCTOR
public MessageSendOptions()
public MessageSendOptions(boolean disableNotification,
boolean fromBackground,
boolean protectContent,
boolean allowPaidBroadcast,
boolean updateOrderOfInstalledStickerSets,
TdApi.MessageSchedulingState schedulingState,
long effectId,
int sendingId,
boolean onlyPreview)
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.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, 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object