From b6c8c6bd24a3c65f94945698c9b18164aaf7fa78 Mon Sep 17 00:00:00 2001 From: Joan Cano Date: Thu, 2 Mar 2023 10:22:05 +0100 Subject: [PATCH] Corregido error de variable duplicada --- wallamanta/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallamanta/worker.py b/wallamanta/worker.py index 0fa385a..9ad4a48 100644 --- a/wallamanta/worker.py +++ b/wallamanta/worker.py @@ -81,7 +81,7 @@ class Worker: logging.info(requests.get(url).json()) except: text = f"*Artículo*: {article['title']}\n*Descripción*: {article['description']}\n*Precio*: {article['price']} {article['currency']}\n[Ir al anuncio](https://es.wallapop.com/item/{article['web_slug']})".replace(".", "\.") - url = f"https://api.telegram.org/bot{TELEGRAM_TOKEN}/sendMessage?chat_id={TELEGRAM_CHANNEL_ID}&text={helpers.telegram_escape_characters(text)text}&parse_mode=MarkdownV2" + url = f"https://api.telegram.org/bot{TELEGRAM_TOKEN}/sendMessage?chat_id={TELEGRAM_CHANNEL_ID}&text={helpers.telegram_escape_characters(text)}&parse_mode=MarkdownV2" requests.get(url) time.sleep(1) # Avoid Telegram flood restriction list.insert(0, article['id'])