Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a37c2ee1d7 |
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user