aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-23 01:09:50 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:32 -0800
commit6aafc4e506e2a9aa72955917f031241be4444c67 (patch)
tree1c52713792a47bfdae2bb99409f343825bdfc2c2 /command.py
parentc30cba1bb04945a8000c6089d5dcd376e08b2133 (diff)
downloadswarm2fediverse-6aafc4e506e2a9aa72955917f031241be4444c67.tar.gz
bot: add command templates
Diffstat (limited to 'command.py')
-rw-r--r--command.py18
1 files changed, 17 insertions, 1 deletions
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)
25 25
26 26
27async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: 27async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
28 await update.message.reply_text(PROMPT_HELP) 28 await update.message.reply_text(PROMPT_HELP, parse_mode=ParseMode.MARKDOWN, reply_markup=MAIN_MENU)
29
30
31async def tos_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
32 await update.message.reply_text(PROMPT_TOS, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU)
33
34
35async def list_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
36 await update.message.reply_text(PROMPT_LIST, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU)
37
38
39async def logout_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
40 await update.message.reply_text(PROMPT_LOGOUT, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU)
41
42
43async def toggle_visibility_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
44 await update.message.reply_text(PROMPT_TOGGLE_VIS, parse_mode=ParseMode.HTML, reply_markup=MAIN_MENU)
29 45
30 46
31async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: 47async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int:
Powered by cgit v1.2.3 (git 2.41.0)