@azteam/telegram-api
Advanced tools
Comparing version
{ | ||
"name": "@azteam/telegram-api", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -32,2 +32,19 @@ import HttpClient from '@azteam/http-client'; | ||
async sendReplyInboxMessage(id, replyID, message, isRemoveKeyBoard = false) { | ||
if (Array.isArray(message)) { | ||
message = message.join('\n'); | ||
} | ||
return this.client.post(this.endpoint + '/sendMessage', { | ||
chat_id: id, | ||
reply_to_message_id: replyID, | ||
text: message, | ||
parse_mode: 'HTML', | ||
reply_markup: JSON.stringify({ | ||
remove_keyboard: isRemoveKeyBoard | ||
}) | ||
}); | ||
} | ||
async sendMenu(id, message, menu) { | ||
@@ -45,3 +62,3 @@ | ||
async sendReply(id, message, menu) { | ||
async sendCallback(id, message, menu) { | ||
@@ -48,0 +65,0 @@ return this.client.post(this.endpoint + '/sendMessage', { |
3731
15.33%98
16.67%