trading-quant/test.py
2024-06-06 19:18:26 +08:00

17 lines
305 B
Python

import requests
# telegram bot key
telegram_bot_key='5863718864:AAFijN65_SbbGQ0WDBggzKJw2SIcZVTVrPw'
#chatid
chat_id = "@cyber4trading"
url = f'https://api.telegram.org/bot{telegram_bot_key}/sendMessage'
formData = {
"chat_id" : chat_id,
"text" : '12312'
}
requests.post(url, data= formData)