use : pip install python-telegram-bot
$ pip install python-telegram-bot --upgrade
import requests
def telegram(bot_alert):
bot_token = 'your telegram bot token'
my_chatID = 'your chat ID'
send_text = 'https://api.telegram.org/bot' + bot_token + '/sendMessage?chat_id=' + my_chatID + '&parse_mode=Markdown&text=' + "*" + bot_alert + "*"
response = requests.get(send_text)
return response.json()
Telegram bot - Python doc