import requests
import os
API_link = 'https://api.telegram.org/bot1153670351:AAH7AOmF6Q4bMavkiRs-6Kq3cXXX-Swfg08'
updates = requests.get(API_link+'/getUpdates?offset=-1').json()
print(updates)
message = updates["result"][0]["message"]
chat_id = message["from"]["id"]
text = message["text"]
if text == "hi":
send_message = requests.get(API_link + f"/sendMessage?chat_id={chat_id}&text=Hi Arsen")
else:
send_message = requests.get(API_link + f"/sendMessage?chat_id={chat_id}&text=I don`t know this command")