From 6aafc4e506e2a9aa72955917f031241be4444c67 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 01:09:50 -0800 Subject: bot: add command templates --- command.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'command.py') diff --git a/command.py b/command.py index 7426901..22f7066 100644 --- a/command.py +++ b/command.py @@ -25,7 +25,23 @@ async def fedi_login_command(update: Update, context: ContextTypes.DEFAULT_TYPE) async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: - await update.message.reply_text(PROMPT_HELP) + await update.message.reply_text(PROMPT_HELP, parse_mode=ParseMode.MARKDOWN, reply_markup=MAIN_MENU) + + +async def tos_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: + await update.message.reply_text(PROMPT_TOS, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU) + + +async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: + await update.message.reply_text(PROMPT_LIST, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU) + + +async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: + await update.message.reply_text(PROMPT_LOGOUT, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU) + + +async def toggle_visibility_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: + await update.message.reply_text(PROMPT_TOGGLE_VIS, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU) async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: -- cgit v1.2.3