public static class TdApi.SendBusinessMessage extends TdApi.Function<TdApi.BusinessMessage>
Returns BusinessMessage
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
businessConnectionId
Unique identifier of business connection on behalf of which to send the request.
|
long |
chatId
Target chat.
|
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.
|
TdApi.InputMessageContent |
inputMessageContent
The content of the message to be sent.
|
boolean |
protectContent
Pass true if the content of the message must be protected from forwarding and saving.
|
TdApi.ReplyMarkup |
replyMarkup
Markup for replying to the message; pass null if none.
|
TdApi.InputMessageReplyTo |
replyTo
Information about the message to be replied; pass null if none.
|
| Constructor and Description |
|---|
SendBusinessMessage()
Default constructor for a function, which sends a message on behalf of a business account; for bots only.
|
SendBusinessMessage(java.lang.String businessConnectionId,
long chatId,
TdApi.InputMessageReplyTo replyTo,
boolean disableNotification,
boolean protectContent,
long effectId,
TdApi.ReplyMarkup replyMarkup,
TdApi.InputMessageContent inputMessageContent)
Creates a function, which sends a message on behalf of a business account; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String businessConnectionId
public long chatId
public TdApi.InputMessageReplyTo replyTo
public boolean disableNotification
public boolean protectContent
public long effectId
public TdApi.ReplyMarkup replyMarkup
public TdApi.InputMessageContent inputMessageContent
public static final int CONSTRUCTOR
public SendBusinessMessage()
Returns BusinessMessage
public SendBusinessMessage(java.lang.String businessConnectionId,
long chatId,
TdApi.InputMessageReplyTo replyTo,
boolean disableNotification,
boolean protectContent,
long effectId,
TdApi.ReplyMarkup replyMarkup,
TdApi.InputMessageContent inputMessageContent)
Returns BusinessMessage
businessConnectionId - Unique identifier of business connection on behalf of which to send the request.chatId - Target chat.replyTo - Information about the message to be replied; pass null if none.disableNotification - Pass true to disable notification for the message.protectContent - Pass true if the content of the message must be protected from forwarding and saving.effectId - Identifier of the effect to apply to the message.replyMarkup - Markup for replying to the message; pass null if none.inputMessageContent - The content of the message to be sent.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object