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.28 to 1.0.29

23

index.d.ts

@@ -103,2 +103,6 @@ export type ChatType = "private" | "group" | "supergroup" | "channel";

edited_channel_post?: Message;
business_connection?: BusinessConnection;
business_message?: Message;
edited_business_message?: Message;
deleted_business_messages?: BusinessMessagesDeleted;
message_reaction?: MessageReactionUpdated;

@@ -133,4 +137,5 @@ message_reaction_count?: MessageReactionCountUpdated;

can_join_groups?: boolean;
can_read_all_group_messages?: boolean;
supports_inline_queries?: boolean;
can_read_all_group_messages?: boolean;
can_connect_to_business?: boolean;
}

@@ -252,2 +257,15 @@ export interface Chat {

}
export interface BusinessConnection {
id: string;
user: User;
user_chat_id: number;
date: number;
can_reply: boolean;
is_enabled: boolean;
}
export interface BusinessMessagesDeleted {
business_connection_id: string;
chat: Chat;
message_ids: number[];
}
export interface MessageReactionUpdated {

@@ -729,2 +747,5 @@ chat: Chat;

export declare function deleteMyCommands(token: string, payload: DeleteMyCommandsOptions, signal: AbortSignal): Promise<Chat>;
export declare function getBusinessConnection(token: string, payload: {
business_connection_id: string;
}, signal: AbortSignal): Promise<BusinessConnection>;
/**

@@ -731,0 +752,0 @@ * Parsers

@@ -185,2 +185,10 @@ /**

}
export function getBusinessConnection(token, payload, signal) {
return fetch(`https://api.telegram.org/bot${token}/getBusinessConnection`, {
method: "POST",
body: JSON.stringify(payload),
headers,
signal
}).then((parseResponse));
}
/**

@@ -187,0 +195,0 @@ * Parsers

2

package.json
{
"name": "telegram-bot-api-nodejs",
"version": "1.0.28",
"version": "1.0.29",
"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