diff options
author | clarkzjw <[email protected]> | 2023-02-23 01:09:50 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-23 12:07:32 -0800 |
commit | 6aafc4e506e2a9aa72955917f031241be4444c67 (patch) | |
tree | 1c52713792a47bfdae2bb99409f343825bdfc2c2 /command.py | |
parent | c30cba1bb04945a8000c6089d5dcd376e08b2133 (diff) | |
download | swarm2fediverse-6aafc4e506e2a9aa72955917f031241be4444c67.tar.gz |
bot: add command templates
Diffstat (limited to 'command.py')
-rw-r--r-- | command.py | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -25,7 +25,23 @@ async def fedi_login_command(update: Update, context: ContextTypes.DEFAULT_TYPE) | |||
25 | 25 | ||
26 | 26 | ||
27 | async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | 27 | async 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 | |||
31 | async 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 | |||
35 | async 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 | |||
39 | async 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 | |||
43 | async 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 | ||
31 | async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: | 47 | async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: |