I'm still completely new. I use pyTelegramBotAPI:
The user enters some command, the bot sends a message with an example of how to enter data and waits for the next message, receiving records in a variable. The question is how to get a new message?
My code is:
@bot.message_handler(func=lambda c:True, content_types=['text']) def info_message(message): msg = message.text.lower() if msg == 'добавить примечание': bot.send_message(message.chat.id, 'Следующее сообщение станет примечанием:') note = message.text print(note) Returns 'add note', but I need the following message.