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

telegram-bot-api-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-bot-api-nodejs - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

4

index.d.ts

@@ -489,3 +489,5 @@ export type ChatType = "private" | "group" | "supergroup" | "channel";

export declare function setWebhook(token: string, body: SetWebHookOptions, signal: AbortSignal): Promise<Boolean>;
export declare function deleteWebhook(token: string, signal: AbortSignal): Promise<Boolean>;
export declare function deleteWebhook(token: string, params: {
drop_pending_updates?: boolean;
}, signal: AbortSignal): Promise<Boolean>;
/** @todo cehck if response is the same as in typings */

@@ -492,0 +494,0 @@ export declare function getWebhookInfo(token: string, signal: AbortSignal): Promise<WebhookInfo>;

@@ -16,6 +16,6 @@ /**

}
export function deleteWebhook(token, signal) {
export function deleteWebhook(token, params, signal) {
return fetch(`https://api.telegram.org/bot${token}/deleteWebhook`, {
method: "POST",
body: JSON.stringify({}),
body: JSON.stringify(params),
headers,

@@ -22,0 +22,0 @@ signal

{
"name": "telegram-bot-api-nodejs",
"version": "1.0.7",
"version": "1.0.8",
"description": "Telegram Bot API client for nodejs",

@@ -5,0 +5,0 @@ "type": "module",

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