Generate Telegram connect link
curl --request POST \
--url https://api.sitespy.app/api/v1/telegram \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/telegram"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/telegram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"link_url": "https://t.me/SiteSpyBot?start=abc123def456",
"expires_in": 1800
}Telegram Notifications
Generate Telegram connect link
Generate a deep-link URL for connecting your Telegram account. Open the returned link in Telegram and tap Start to complete the connection.
POST
/
telegram
Generate Telegram connect link
curl --request POST \
--url https://api.sitespy.app/api/v1/telegram \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/telegram"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/telegram', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"link_url": "https://t.me/SiteSpyBot?start=abc123def456",
"expires_in": 1800
}
