Update useful.py

This commit is contained in:
Alter-xyz
2024-07-15 06:50:22 -04:00
parent b1e52c7e18
commit 35c673ff2e

View File

@ -808,7 +808,7 @@ def final_answer(latest_message: Message, bot: TeleBot, full_answer: str):
append_answers(result, api_name) append_answers(result, api_name)
except Exception as e: except Exception as e:
print(f"An API call failed: {e}") print(f"An API call failed: {e}")
m += "✔️" m += "✔️"
bot_reply_markdown(reply_id, who, m, bot) bot_reply_markdown(reply_id, who, m, bot)
@ -832,9 +832,7 @@ def append_message_to_ph_front(m: str, path: str) -> bool:
else: else:
new_content = content new_content = content
time.sleep(1) time.sleep(1)
ph.edit_page( ph.edit_page(ph_path, title="Answer it", content=new_content)
ph_path, title="Answer it", content=new_content
)
return True return True
except Exception as e: except Exception as e:
print(f"\n---\nappend_message_to_ph_front Error:\n{e}\n---\n") print(f"\n---\nappend_message_to_ph_front Error:\n{e}\n---\n")