minor chat_member bot handler fix
This commit is contained in:
+2
-2
@@ -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: [
|
||||||
|
|||||||
Reference in New Issue
Block a user