From 35c673ff2ee2104a84425435de62b0b1d0a4ac5e Mon Sep 17 00:00:00 2001 From: Alter-xyz <88554920+alterxyz@users.noreply.github.com> Date: Mon, 15 Jul 2024 06:50:22 -0400 Subject: [PATCH] Update useful.py --- handlers/useful.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/handlers/useful.py b/handlers/useful.py index ec05434..d3009ac 100644 --- a/handlers/useful.py +++ b/handlers/useful.py @@ -808,7 +808,7 @@ def final_answer(latest_message: Message, bot: TeleBot, full_answer: str): append_answers(result, api_name) except Exception as e: print(f"An API call failed: {e}") - + m += "✔️" bot_reply_markdown(reply_id, who, m, bot) @@ -832,9 +832,7 @@ def append_message_to_ph_front(m: str, path: str) -> bool: else: new_content = content time.sleep(1) - ph.edit_page( - ph_path, title="Answer it", content=new_content - ) + ph.edit_page(ph_path, title="Answer it", content=new_content) return True except Exception as e: print(f"\n---\nappend_message_to_ph_front Error:\n{e}\n---\n")