Fixed not assigned frase

This commit is contained in:
Joan Cano
2023-05-04 14:37:22 +02:00
parent 137b0ce451
commit e464c54f19

View File

@@ -74,7 +74,7 @@ async def sorteo(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
del context.chat_data["participantes"] del context.chat_data["participantes"]
del context.chat_data["frase"] del context.chat_data["frase"]
logging.info(f"Frase activada: {frase}") logging.info(f"Frase activada: {frase}")
context.chat_data["frase"] context.chat_data["frase"] = frase
logging.info("Sorteo activo, leyendo mensajes") 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.") await context.bot.send_message(chat_id=update.effective_chat.id, text=f"¡Empieza el sorteo! Escribe '{frase}' para participar.")