13 lines
260 B
Python
13 lines
260 B
Python
import requests
|
|
from credentials import secrets
|
|
|
|
|
|
|
|
TOKEN=secrets.get("token")
|
|
CHAT_ID=secrets.get("chat_id")
|
|
SEND_URL = f"https://api.telegram.org/bot{TOKEN}/sendMessage"
|
|
|
|
message="Hi there"
|
|
|
|
requests.post(SEND_URL, json={"chat_id": CHAT_ID, "text": message})
|