New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@azteam/telegram-api

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azteam/telegram-api - npm Package Compare versions

Comparing version

to
1.1.9

2

package.json
{
"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', {