Answer the question
In order to leave comments, you need to log in
How to process arbitrary Telegram data by a bot?
Hello.
There was a need to process arbitrary data entered by users through the telegram-bot-api for node js.
More specifically, there is the following logical chain for implementation:
Бот требует от пользователя ввести название записи (т.е. следующее сообщение от пользователя боту, введенное с клавиатуры будет восприниматься ботом как ввод данных на обработку)
=>
Создание записи с названием, введенным от пользователя.
Answer the question
In order to leave comments, you need to log in
bot.on('message', (msg) => {
//...
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question