S
S
sttpforever2021-03-23 16:32:10
Python
sttpforever, 2021-03-23 16:32:10

Why can't the Telebot register_next_step_handler module make a second conversation chain in Python's Telegram bot?

Good afternoon. I'm trying to write a bot for Telegram in the python Telebot module. To build a conversation chain, I used register_next_step_handler and it worked for me at first. But when I wanted to make a second conversation chain for the second key phrase, then flake and the interpreter started to swear. Please help me figure out what I'm doing wrong. My code is https://pastebin.com/EPwKnusS . flake throws an error: TokenError: EOF in multiline statement. Interpreter throws: bot.register_next_step_handler(message, process_lengthp)

SyntaxError: invalid syntax

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-03-23
@sttpforever

bot.send_message(message.chat.id, 'Какая длина комнаты в метрах?'

bracket

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question