(message)
| 31 | |
| 32 | |
| 33 | def process_name_step(message): |
| 34 | try: |
| 35 | chat_id = message.chat.id |
| 36 | name = message.text |
| 37 | user = User(name) |
| 38 | user_dict[chat_id] = user |
| 39 | msg = bot.reply_to(message, 'How old are you?') |
| 40 | bot.register_next_step_handler(msg, process_age_step) |
| 41 | except Exception as e: |
| 42 | bot.reply_to(message, 'oooops') |
| 43 | |
| 44 | |
| 45 | def process_age_step(message): |
nothing calls this directly
no test coverage detected
searching dependent graphs…