c
/**
*
* @param {number|string} chatId
* @param {string} text
* @param {Object} [options]
* @returns {Promise<Message>}
*/
sendMessage(chatId, text, options) {
const params = {
chat_id: chatId,
text: text
}
if (text.length > 4096) {
this.sendMessage(chatId, text.slice(0, 4096), options)
.then(() => {
this.sendMessage(chatId, text.slice(4096, text.length), options)
})
} else {
return this._callWithReturnType('sendMessage', Object.assign(params, options), Message)
}
}

