From 7c8fc054e9b0161db1b2b13b44f914695936f8ab Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 3 Feb 2024 09:48:05 +0300 Subject: [PATCH] fixed chat_member handler --- src/bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 8db771d..46820af 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -32,7 +32,7 @@ export class ChannelBot { process.once('SIGINT', () => this.bot.stop('SIGINT')); process.once('SIGTERM', () => this.bot.stop('SIGTERM')); - this.bot.on('chat_member', this.handleChatMemberUpdate.bind(this)); + this.bot.on('chat_member', (ctx) => this.handleChatMemberUpdate(ctx)); this.bot.launch( {