Class TdApi.SendBusinessMessage
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.BusinessMessage>
dev.voroby.springframework.telegram.client.TdApi.SendBusinessMessage
- Enclosing class:
- TdApi
Sends a message on behalf of a business account; for bots only. Returns the message after it was sent.
Returns BusinessMessage
-
Field Summary
Modifier and TypeFieldDescriptionUnique identifier of business connection on behalf of which to send the request.long
Target chat.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.The content of the message to be sent.boolean
Pass true if the content of the message must be protected from forwarding and saving.Markup for replying to the message; pass null if none.Information about the message to be replied; pass null if none. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which sends a message on behalf of a business account; for bots only.SendBusinessMessage
(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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
businessConnectionId
Unique identifier of business connection on behalf of which to send the request. -
chatId
public long chatIdTarget chat. -
replyTo
Information about the message to be replied; pass null if none. -
disableNotification
public boolean disableNotificationPass true to disable notification for the message. -
protectContent
public boolean protectContentPass true if the content of the message must be protected from forwarding and saving. -
effectId
public long effectIdIdentifier 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendBusinessMessage
public SendBusinessMessage()Default constructor for a function, which sends a message on behalf of a business account; for bots only. Returns the message after it was sent.Returns
BusinessMessage
-
SendBusinessMessage
public SendBusinessMessage(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. Returns the message after it was sent.Returns
BusinessMessage
- Parameters:
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.
-
-
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
-