A
A
Amir Pirnazarov2021-06-25 08:09:33
Python
Amir Pirnazarov, 2021-06-25 08:09:33

I am making a telegram bot for receiving applications: full name, phone number, Deportment, position. Does the cycle stop?

I am making a telegram bot for receiving applications: full name, phone number, Deportment, position. When we select a department from the menu item, the bot asks back for the phone number that we have already entered earlier, no matter how the cycle stops. Tell me in the code where it is not correct https://gist.github.com/amirchik99/3d559ec4fd11e48... here is a link to the code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-06-25
@amirchik_98

You send a text message - you get into the text message handler on the 25th line. To request user data there is register_next_step_handler

@bot.message_handler(content_types=['Business Intelligence & Corporate Reporting Department'])

What is this content type?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question