minor chat_member bot handler fix

This commit is contained in:
Anton 2024-02-03 10:59:27 +03:00
parent 7c8fc054e9
commit 21589dad60
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ export class ChannelBot {
process.once('SIGINT', () => this.bot.stop('SIGINT')); process.once('SIGINT', () => this.bot.stop('SIGINT'));
process.once('SIGTERM', () => this.bot.stop('SIGTERM')); 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( this.bot.launch(
{ {
allowedUpdates: [ allowedUpdates: [