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

telegraf

Package Overview
Dependencies
Maintainers
3
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegraf - npm Package Compare versions

Comparing version 4.5.1 to 4.5.2

14

lib/context.js

@@ -638,6 +638,5 @@ "use strict";

*/
banChatSenderChat(chatId, senderChatId) {
const message = getMessageFromAnySource(this);
this.assert(message, 'banChatSenderChat');
return this.telegram.banChatSenderChat(chatId, senderChatId);
banChatSenderChat(senderChatId) {
this.assert(this.chat, 'banChatSenderChat');
return this.telegram.banChatSenderChat(this.chat.id, senderChatId);
}

@@ -647,6 +646,5 @@ /**

*/
unbanChatSenderChat(chatId, senderChatId) {
const message = getMessageFromAnySource(this);
this.assert(message, 'unbanChatSenderChat');
return this.telegram.unbanChatSenderChat(chatId, senderChatId);
unbanChatSenderChat(senderChatId) {
this.assert(this.chat, 'unbanChatSenderChat');
return this.telegram.unbanChatSenderChat(this.chat.id, senderChatId);
}

@@ -653,0 +651,0 @@ }

{
"name": "telegraf",
"version": "4.5.1",
"version": "4.5.2",
"description": "Modern Telegram Bot Framework",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -903,10 +903,5 @@ import * as tg from './core/types/typegram'

*/
banChatSenderChat(
this: Context,
chatId: number | string,
senderChatId: number
) {
const message = getMessageFromAnySource(this)
this.assert(message, 'banChatSenderChat')
return this.telegram.banChatSenderChat(chatId, senderChatId)
banChatSenderChat(this: Context, senderChatId: number) {
this.assert(this.chat, 'banChatSenderChat')
return this.telegram.banChatSenderChat(this.chat.id, senderChatId)
}

@@ -917,10 +912,5 @@

*/
unbanChatSenderChat(
this: Context,
chatId: number | string,
senderChatId: number
) {
const message = getMessageFromAnySource(this)
this.assert(message, 'unbanChatSenderChat')
return this.telegram.unbanChatSenderChat(chatId, senderChatId)
unbanChatSenderChat(this: Context, senderChatId: number) {
this.assert(this.chat, 'unbanChatSenderChat')
return this.telegram.unbanChatSenderChat(this.chat.id, senderChatId)
}

@@ -927,0 +917,0 @@ }

@@ -350,7 +350,7 @@ import * as tg from './core/types/typegram';

*/
banChatSenderChat(this: Context, chatId: number | string, senderChatId: number): Promise<true>;
banChatSenderChat(this: Context, senderChatId: number): Promise<true>;
/**
* @see https://core.telegram.org/bots/api#unbanchatsenderchat
*/
unbanChatSenderChat(this: Context, chatId: number | string, senderChatId: number): Promise<true>;
unbanChatSenderChat(this: Context, senderChatId: number): Promise<true>;
}

@@ -357,0 +357,0 @@ export default Context;

Sorry, the diff of this file is not supported yet

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