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

Function process_name_step

examples/step_example.py:33–42  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

31
32
33def process_name_step(message):
34 try:
35 chat_id = message.chat.id
36 name = message.text
37 user = User(name)
38 user_dict[chat_id] = user
39 msg = bot.reply_to(message, 'How old are you?')
40 bot.register_next_step_handler(msg, process_age_step)
41 except Exception as e:
42 bot.reply_to(message, 'oooops')
43
44
45def process_age_step(message):

Callers

nothing calls this directly

Calls 3

UserClass · 0.70
reply_toMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…