def send_telegram(text: str):
token = token
url = "https://api.telegram.org/bot"
channel_id = channel_id
url += token
method = url + "/newpost"
r = requests.post(method, data={
"chat_id": channel_id,
"text": text
})
send_telegram("hello world!")
{"ok":false,"error_code":404,"description":"Not Found"}