(message: types.Message, state: StateContext)
| 32 | # Cancel command handler |
| 33 | @bot.message_handler(state="*", commands=["cancel"]) |
| 34 | def any_state(message: types.Message, state: StateContext): |
| 35 | state.delete() |
| 36 | bot.send_message( |
| 37 | message.chat.id, |
| 38 | "Your information has been cleared. Type /start to begin again.", |
| 39 | reply_parameters=ReplyParameters(message_id=message.message_id), |
| 40 | ) |
| 41 | |
| 42 | |
| 43 | # Handler for name input |
nothing calls this directly
no test coverage detected
searching dependent graphs…