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

Function start_ex

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

Source from the content-addressed store, hash-verified

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

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…