From b3786171167337685c21d64f4eed4a7cc1c5b130 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 22 Feb 2023 11:43:10 -0800 Subject: more code formatting --- command.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'command.py') diff --git a/command.py b/command.py index 579fa48..72e1820 100644 --- a/command.py +++ b/command.py @@ -7,14 +7,7 @@ from config import * async def start_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: - hello = "Hello, this is `checkin.bot`. \n\n" \ - "This is a Telegram bot with functionality similar to Foursquare Swarm, " \ - "but check in and post your location to the Fediverse (Mastodon/Pleroma) instead of Twitter.\n\n" \ - "Aware of privacy concerns, this bot will not store your location data." \ - "*Be safe and cautious when sharing your real time location on the web.* \n\n" \ - "Start using this bot by sharing your location using Telegram context menu to it." - - await update.message.reply_text(hello, parse_mode=ParseMode.MARKDOWN) + await update.message.reply_text(PROMPT_START, parse_mode=ParseMode.MARKDOWN) await update.message.reply_text(PROMPT_CHOOSE_ACTION, reply_markup=MAIN_MENU) return WAIT_LOCATION @@ -25,7 +18,7 @@ async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No async def cancel_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: - for prompt in [PROMPT_LOCATION_KEYWORD, PROMPT_CHOOSE_POI_FROM_LIST, PROMPT_ADD_COMMENT, PROMPT_ADD_MEDIA]: + for prompt in [PROMPT_LOCATION_KEYWORD, PROMPT_WAIT_LOCATION_CONFIRMATION, PROMPT_ADD_COMMENT, PROMPT_ADD_MEDIA]: try: if context.user_data.get(prompt): await context.bot.delete_message(chat_id=update.message.chat_id, -- cgit v1.2.3