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