(message: types.Message, state: StateContext)
| 20 | # Start command handler |
| 21 | @bot.message_handler(commands=["start"]) |
| 22 | async def start_ex(message: types.Message, state: StateContext): |
| 23 | await state.set(MyStates.name) |
| 24 | await bot.send_message( |
| 25 | message.chat.id, |
| 26 | "Hello! What is your first name?", |
| 27 | reply_parameters=ReplyParameters(message_id=message.message_id), |
| 28 | ) |
| 29 | |
| 30 | |
| 31 | # Cancel command handler |
nothing calls this directly
no test coverage detected
searching dependent graphs…