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