@azteam/telegram-api
Advanced tools
Comparing version 1.0.59 to 1.0.60
{ | ||
"name": "@azteam/telegram-api", | ||
"version": "1.0.59", | ||
"version": "1.0.60", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,3 +15,3 @@ import HttpClient from '@azteam/http-client'; | ||
async sendInboxMessage(id, message) { | ||
async sendInboxMessage(id, message, isRemoveKeyBoard = true) { | ||
if (Array.isArray(message)) { | ||
@@ -24,8 +24,8 @@ message = message.join('\n'); | ||
text: message, | ||
parse_mode: 'HTML' | ||
parse_mode: 'HTML', | ||
remove_keyboard: isRemoveKeyBoard | ||
}); | ||
} | ||
async sendMenu(id, message, menu, clear = false) { | ||
async sendMenu(id, message, menu) { | ||
@@ -38,3 +38,2 @@ return this.client.post(this.endpoint + '/sendMessage', { | ||
resize_keyboard: true, | ||
remove_keyboard: removeKeyBoard | ||
}) | ||
@@ -44,3 +43,3 @@ }); | ||
async sendReply(id, message, menu, removeKeyBoard = false) { | ||
async sendReply(id, message, menu) { | ||
@@ -52,10 +51,8 @@ return this.client.post(this.endpoint + '/sendMessage', { | ||
inline_keyboard: menu, | ||
resize_keyboard: true, | ||
remove_keyboard: removeKeyBoard | ||
resize_keyboard: true | ||
}) | ||
}); | ||
} | ||
} | ||
export default TelegramAPI; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2146
47