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

Function age_incorrect

examples/custom_states.py:137–142  ·  view source on GitHub ↗
(message: types.Message)

Source from the content-addressed store, hash-verified

135# Handler for incorrect age input
136@bot.message_handler(state=MyStates.age, is_digit=False)
137def age_incorrect(message: types.Message):
138 bot.send_message(
139 message.chat.id,
140 "Please enter a valid number for age.",
141 reply_parameters=ReplyParameters(message_id=message.message_id),
142 )
143
144
145# Add custom filters

Callers

nothing calls this directly

Calls 2

ReplyParametersClass · 0.90
send_messageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…