From dcc557218ec27f35f7726112884af91d87be2e84 Mon Sep 17 00:00:00 2001 From: hadi Date: Sat, 8 Aug 2026 19:06:13 +0330 Subject: [PATCH] add send "hello hadi" for status bot --- main.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index e53e961..01a731f 100644 --- a/main.py +++ b/main.py @@ -25,11 +25,18 @@ while hadi: last = int(res.get("result")[-1]["update_id"]) print(last) if last > last_message: - time_call = res.get("result")[-1]["message"]["text"] + text_call = res.get("result")[-1]["message"]["text"] + if text_call == "ping": + ur = f"https://tapi.bale.ai/bot{TOKEN}/sendMessage" + data = {"chat_id": 2124461972, "text": "hello hadi"} + last_message = last + hadi = requests.post(ur, data).text + print(hadi) + continue print("new message for call") - print(time_call) + print(text_call) try: - format_t = int(time_call) * 60 + format_t = int(text_call) * 60 print(format_t) time.sleep(format_t) pyautogui.click(968, 907)