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 1.0.56 to 1.0.57

2

package.json
{
"name": "@azteam/telegram-api",
"version": "1.0.56",
"version": "1.0.57",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -15,3 +15,3 @@ import HttpClient from '@azteam/http-client';

async sendInboxMessage(telegram_id, message) {
async sendInboxMessage(id, message) {
if (Array.isArray(message)) {

@@ -22,3 +22,3 @@ message = message.join('\n');

return this.client.post(this.endpoint + '/sendMessage', {
chat_id: telegram_id,
chat_id: id,
text: message,

@@ -29,4 +29,29 @@ parse_mode: 'HTML'

}
async sendMenu(id, message, menu) {
return this.client.post(this.endpoint + '/sendMessage', {
chat_id: id,
text: message,
reply_markup: JSON.stringify({
keyboard: menu,
resize_keyboard: true
})
});
}
async sendReply(id, message, menu) {
return this.client.post(this.endpoint + '/sendMessage', {
chat_id: id,
text: message,
reply_markup: JSON.stringify({
inline_keyboard: menu,
resize_keyboard: true
})
});
}
}
export default TelegramAPI;
export default TelegramAPI;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc