Fix error message when inline weather

This commit is contained in:
AlberLC
2022-01-31 06:22:02 +01:00
parent 449df672b5
commit a37c2ee1d7

View File

@@ -583,6 +583,7 @@ class FlanaBot(MultiBot, ABC):
- flanautils.CommonWords.words
)
if not place_words:
if not message.is_inline:
await self.send_error(random.choice(('¿Tiempo dónde?', 'Indica el sitio.', 'Y el sitio?', 'y el sitio? me lo invento?')), message)
return
@@ -590,6 +591,7 @@ class FlanaBot(MultiBot, ABC):
place_words.insert(0, 'calle')
place_query = ' '.join(place_words)
if len(place_query) >= constants.MAX_PLACE_QUERY_LENGTH:
if not message.is_inline:
await self.send_error(Media('resources/mucho_texto.png'), message)
return
if show_progress_state: