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

Function start

examples/inlinebot.py:38–40  ·  view source on GitHub ↗

Send a message when the command /start is issued.

(update: Update, context: ContextTypes.DEFAULT_TYPE)

Source from the content-addressed store, hash-verified

36# Define a few command handlers. These usually take the two arguments update and
37# context.
38async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
39 """Send a message when the command /start is issued."""
40 await update.message.reply_text("Hi!")
41
42
43async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:

Callers

nothing calls this directly

Calls 1

reply_textMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…