How to stop the function of the telegram bot?

0 like 0 dislike
There is a function

bot.on('text', (ctx) => { console.log(ctx.message.text) })

How to stop her execution so that she stopped listening to user input
asked by | 40 views

2 Answers

0 like 0 dislike
In General, it is necessary to specify a framework that you yuzaete for development.
answered by
0 like 0 dislike
You handler. There are 2 parts - sending events and processing events.

If you want to disable processing then simply remove this block of code and restart the bot (or if he does nothing else then all prerate process)

If you want to get traffic then get the address of your bot where it was configured
answered by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
24,509 questions
45,931 answers
277 users