* 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)
| 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 |
nothing calls this directly
no test coverage detected