From 21589dad60a1931fcd64f5f2a6153b604accc361 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 3 Feb 2024 10:59:27 +0300 Subject: [PATCH] minor chat_member bot handler fix --- src/bot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index 46820af..e83a413 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -32,8 +32,8 @@ export class ChannelBot { process.once('SIGINT', () => this.bot.stop('SIGINT')); process.once('SIGTERM', () => this.bot.stop('SIGTERM')); - this.bot.on('chat_member', (ctx) => this.handleChatMemberUpdate(ctx)); - + this.bot.on('chat_member', this.handleChatMemberUpdate.bind(this)); + this.bot.launch( { allowedUpdates: [