Spaces:
Running
Running
sync: 149 file da Baida98/AI@9d8daf2e (2026-07-01 10:33 UTC)
Browse files- api/telegram_webhook.py +3 -5
api/telegram_webhook.py
CHANGED
|
@@ -746,11 +746,9 @@ async def _cmd_check(chat_id: int) -> None:
|
|
| 746 |
pass
|
| 747 |
|
| 748 |
sync_icon = "β
" if gh_sha != "?" and gh_sha[:8] in hf_build else "β οΈ"
|
| 749 |
-
lines_out = ["π <b>Infrastructure Check</b>
|
| 750 |
-
"]
|
| 751 |
lines_out.extend(probes)
|
| 752 |
-
lines_out.append(f"
|
| 753 |
-
<code>GH HEAD: {gh_sha}</code>")
|
| 754 |
lines_out.append(f"<code>HF build: {hf_build}</code>")
|
| 755 |
lines_out.append(f"{sync_icon} <i>GHβHF {'in sync' if sync_icon=='β
' else 'OUT OF SYNC β usa π Sync HF'}</i>")
|
| 756 |
await _tg_reply(chat_id, "\n".join(lines_out), keyboard=_BACK_KB)
|
|
@@ -2124,7 +2122,7 @@ async def _handle_callback(callback_query: dict, token: str) -> None:
|
|
| 2124 |
await _cmd_status(chat_id)
|
| 2125 |
await _tg_reply(chat_id, "π <b>Stato Sistema</b> β altre opzioni:", token=token, keyboard=_STATUS_MENU_KB)
|
| 2126 |
elif data == "menu_perf":
|
| 2127 |
-
|
| 2128 |
elif data == "menu_health":
|
| 2129 |
asyncio.create_task(_cmd_scan_now(chat_id)).add_done_callback(_log_tg_exc)
|
| 2130 |
elif data == "menu_dev":
|
|
|
|
| 746 |
pass
|
| 747 |
|
| 748 |
sync_icon = "β
" if gh_sha != "?" and gh_sha[:8] in hf_build else "β οΈ"
|
| 749 |
+
lines_out = ["π <b>Infrastructure Check</b>"]
|
|
|
|
| 750 |
lines_out.extend(probes)
|
| 751 |
+
lines_out.append(f"<code>GH HEAD: {gh_sha}</code>")
|
|
|
|
| 752 |
lines_out.append(f"<code>HF build: {hf_build}</code>")
|
| 753 |
lines_out.append(f"{sync_icon} <i>GHβHF {'in sync' if sync_icon=='β
' else 'OUT OF SYNC β usa π Sync HF'}</i>")
|
| 754 |
await _tg_reply(chat_id, "\n".join(lines_out), keyboard=_BACK_KB)
|
|
|
|
| 2122 |
await _cmd_status(chat_id)
|
| 2123 |
await _tg_reply(chat_id, "π <b>Stato Sistema</b> β altre opzioni:", token=token, keyboard=_STATUS_MENU_KB)
|
| 2124 |
elif data == "menu_perf":
|
| 2125 |
+
await _tg_reply(chat_id,"π <b>Performance</b> β scegli:", token=token, keyboard=_PERF_MENU_KB)
|
| 2126 |
elif data == "menu_health":
|
| 2127 |
asyncio.create_task(_cmd_scan_now(chat_id)).add_done_callback(_log_tg_exc)
|
| 2128 |
elif data == "menu_dev":
|