Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azteam/telegram-api

Package Overview
Dependencies
Maintainers
1
Versions
159
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.59 to 1.0.60

2

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