MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / start_ex

Function start_ex

examples/custom_states.py:23–29  ·  view source on GitHub ↗
(message: types.Message, state: StateContext)

Source from the content-addressed store, hash-verified

21# Start command handler
22@bot.message_handler(commands=["start"])
23def 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

Callers

nothing calls this directly

Calls 3

ReplyParametersClass · 0.90
setMethod · 0.45
send_messageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…