Optional
businessOptional
clearWhether to clear draft after sending this message.
Optional
commentMessage to comment to. Either a message object or message ID.
This overwrites replyTo
if it was passed
Optional
effectID of a message effect to use when sending the message (see TelegramClient.getAvailableMessageEffects)
Optional
forbidWhether to disallow further forwards of this message.
Only for bots, works even if the target chat does not have content protection.
Optional
mustWhether to throw an error if replyTo message does not exist.
If that message was not found, NotFoundError
is thrown,
with text
set to MESSAGE_NOT_FOUND
.
Incurs an additional request, so only use when really needed.
Optional
quickIf passed, instead of sending the message, it will be saved into the given quick reply shortcut (either its ID or its shortcut string).
Optional
quoteQuoted text. Must be exactly contained in the message being quoted to be accepted by the server (as well as entities)
Optional
quoteOffset of the start of the quote in the message.
Optional
replyMessage to reply to. Either a message object or message ID.
For forums - can also be an ID of the topic (i.e. its top message ID)
Can also be a message from another chat, in which case a quote will be sent.
Optional
replyOptional
scheduleIf set, the message will be scheduled to this date. When passing a number, a UNIX time in ms is expected.
You can also pass online
- this will send the message
once the peer is online. Note that this requires that
peer's online status to be visible to you.
Optional
sendPeer to use when sending the message.
Optional
shouldWhether to dispatch the returned message to the client's update handler.
Doesn't follow disableNoDispatch
Optional
silentWhether to send this message silently.
Destination chat ID
Unique identifier of the business connection on behalf of which the message will be sent