add send "hello hadi" for status bot
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user