Fakultas Ilmu Komputer UI

Commit 1dec15a7 authored by ZAKI RAIHAN's avatar ZAKI RAIHAN
Browse files

Add parse_mode=HTML in custom messages

parent 7d2e46b0
......@@ -56,7 +56,7 @@ def sendNotifCustom():
return {'status': 500, 'message': 'User notification is being turned off'}
else:
param = urllib.parse.urlencode({'chat_id': user.chatId, 'text': req_data['message']})
url = "https://api.telegram.org/bot" + TOKEN + "/sendMessage?" + param
url = "https://api.telegram.org/bot" + TOKEN + "/sendMessage?" + param + "&parse_mode=HTML"
r = requests.get(url = url)
return r.json()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment