Fixed not assigned frase
This commit is contained in:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user