SendBusinessMessage class final

Sends a message on behalf of a business account; for bots only. Returns the message after it was sent

Returns BusinessMessage.

Inheritance

Constructors

SendBusinessMessage({required String businessConnectionId, required int chatId, InputMessageReplyTo? replyTo, required bool disableNotification, required bool protectContent, required int effectId, ReplyMarkup? replyMarkup, required InputMessageContent inputMessageContent})
Sends a message on behalf of a business account; for bots only. Returns the message after it was sent
const

Properties

businessConnectionId → String
Unique identifier of business connection on behalf of which to send the request
final
canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
chatId → int
Target chat
final
disableNotification → bool
Pass true to disable notification for the message
final
effectId → int
Identifier of the effect to apply to the message
final
hashCode → int
The hash code for this object.
no setterinherited
inputMessageContent → InputMessageContent
The content of the message to be sent
final
protectContent → bool
Pass true if the content of the message must be protected from forwarding and saving
final
replyMarkup → ReplyMarkup?
Markup for replying to the message; pass null if none
final
replyTo → InputMessageReplyTo?
Information about the message to be replied; pass null if none
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? businessConnectionId, int? chatId, InputMessageReplyTo? replyTo()?, bool? disableNotification, bool? protectContent, int? effectId, ReplyMarkup? replyMarkup()?, InputMessageContent? inputMessageContent}) → SendBusinessMessage
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.