From e464c54f190f9a4e016e476492940afb75bbe4b3 Mon Sep 17 00:00:00 2001 From: Joan Cano Date: Thu, 4 May 2023 14:37:22 +0200 Subject: [PATCH] Fixed not assigned frase --- tesla-raffle/tesla-raffle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tesla-raffle/tesla-raffle.py b/tesla-raffle/tesla-raffle.py index 0f7ba35..20f1767 100644 --- a/tesla-raffle/tesla-raffle.py +++ b/tesla-raffle/tesla-raffle.py @@ -74,7 +74,7 @@ async def sorteo(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: del context.chat_data["participantes"] del context.chat_data["frase"] logging.info(f"Frase activada: {frase}") - context.chat_data["frase"] + context.chat_data["frase"] = frase logging.info("Sorteo activo, leyendo mensajes") await context.bot.send_message(chat_id=update.effective_chat.id, text=f"¡Empieza el sorteo! Escribe '{frase}' para participar.")