MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / start

Function start

examples/errorhandlerbot.py:63–68  ·  view source on GitHub ↗

Displays info on how to trigger an error.

(update: Update, context: ContextTypes.DEFAULT_TYPE)

Source from the content-addressed store, hash-verified

61
62
63async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
64 """Displays info on how to trigger an error."""
65 await update.effective_message.reply_html(
66 "Use /bad_command to cause an error.\n"
67 f"Your chat id is <code>{update.effective_chat.id}</code>."
68 )
69
70
71def main() -> None:

Callers

nothing calls this directly

Calls 1

reply_htmlMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…