MCPcopy Create free account
hub / github.com/botmasterai/botmaster / sendMessageTo

Method sendMessageTo

lib/base_bot.js:353–360  ·  view source on GitHub ↗

* sendMessageTo() Just makes it easier to send a message without as much * structure. * @param {object} message NOT an instance of OutgoingMessage. Use * #sendMessage if you want to send instances of OutgoingMessage * @param {string} recipientId a string representing the id of the user t

(message, recipientId, sendOptions)

Source from the content-addressed store, hash-verified

351 *
352 */
353 sendMessageTo(message, recipientId, sendOptions) {
354 const outgoingMessage = this.createOutgoingMessage({
355 message,
356 });
357 outgoingMessage.addRecipientById(recipientId);
358
359 return this.sendMessage(outgoingMessage, sendOptions);
360 }
361
362 /**
363 * sendTextMessageTo() Just makes it easier to send a text message with

Callers

nothing calls this directly

Calls 3

createOutgoingMessageMethod · 0.95
sendMessageMethod · 0.95
addRecipientByIdMethod · 0.80

Tested by

no test coverage detected