add send "hello hadi" for status bot

This commit is contained in:
2026-08-08 19:06:13 +03:30
parent 2eb5f7d947
commit dcc557218e
+10 -3
View File
@@ -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)