Send a message when the command /start is issued.
(update: Update, context: ContextTypes.DEFAULT_TYPE)
| 33 | # Define a few command handlers. These usually take the two arguments update and |
| 34 | # context. |
| 35 | async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: |
| 36 | """Send a message when the command /start is issued.""" |
| 37 | user = update.effective_user |
| 38 | await update.message.reply_html( |
| 39 | rf"Hi {user.mention_html()}!", |
| 40 | reply_markup=ForceReply(selective=True), |
| 41 | ) |
| 42 | |
| 43 | |
| 44 | async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…