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

Function start

examples/customwebhookbot/starlettebot.py:81–88  ·  view source on GitHub ↗

Display a message with instructions on how to use this bot.

(update: Update, context: CustomContext)

Source from the content-addressed store, hash-verified

79
80
81async def start(update: Update, context: CustomContext) -> None:
82 """Display a message with instructions on how to use this bot."""
83 payload_url = html.escape(f"{URL}/submitpayload?user_id=<your user id>&payload=<payload>")
84 text = (
85 f"To check if the bot is still running, call <code>{URL}/healthcheck</code>.\n\n"
86 f"To post a custom update, call <code>{payload_url}</code>."
87 )
88 await update.message.reply_html(text=text)
89
90
91async def webhook_update(update: WebhookUpdate, context: CustomContext) -> 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…