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