diff --git a/src/telegram_handler/telegram_start_handler.py b/src/telegram_handler/telegram_start_handler.py index d30c643..a6426f6 100644 --- a/src/telegram_handler/telegram_start_handler.py +++ b/src/telegram_handler/telegram_start_handler.py @@ -79,6 +79,8 @@ class TelegramStartHandler: async def address(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> int: """Asks for a location.""" cities = update.message.text.split(",") + # Remove leading/trailing spaces from each city name + cities = [city.strip() for city in cities] await update.message.set_reaction(ReactionEmoji.FIRE) reply_markup = ReplyKeyboardMarkup([[KeyboardButton("Yes"), KeyboardButton("No")]], one_time_keyboard=True, input_field_placeholder=Flow.VERIFY_ADDRESS.name)