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

Function name_get

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

Source from the content-addressed store, hash-verified

42# Handler for name input
43@bot.message_handler(state=MyStates.name)
44async def name_get(message: types.Message, state: StateContext):
45 await state.set(MyStates.age)
46 await bot.send_message(
47 message.chat.id, "How old are you?",
48 reply_parameters=ReplyParameters(message_id=message.message_id),
49 )
50 await state.add_data(name=message.text)
51
52
53# Handler for age input

Callers

nothing calls this directly

Calls 4

ReplyParametersClass · 0.90
setMethod · 0.45
send_messageMethod · 0.45
add_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…