Fixed escaping characters

This commit is contained in:
Joan
2023-07-04 14:44:10 +02:00
parent ac966d3bf0
commit b3735f9494

View File

@@ -136,6 +136,7 @@ async def send_article(article, product):
created_at = f"*📅 Fecha de publicación:* {telegram_escape_characters(get_publish_date(article))}" created_at = f"*📅 Fecha de publicación:* {telegram_escape_characters(get_publish_date(article))}"
modified_at = f"*📅 Fecha de modificación:* {telegram_escape_characters(get_modified_date(article))}" modified_at = f"*📅 Fecha de modificación:* {telegram_escape_characters(get_modified_date(article))}"
location = f"📍 *Lugar:* {telegram_escape_characters(article['location']['city'])} ({telegram_escape_characters(article['location']['postal_code'])}) - {telegram_escape_characters(article['location']['country_code'])})" location = f"📍 *Lugar:* {telegram_escape_characters(article['location']['city'])} ({telegram_escape_characters(article['location']['postal_code'])}) - {telegram_escape_characters(article['location']['country_code'])})"
location = telegram_escape_characters(location)
if article['shipping']['user_allows_shipping']: if article['shipping']['user_allows_shipping']:
user_ships = f"📦 *Envío:* ✅" user_ships = f"📦 *Envío:* ✅"
else: else: