mirror of
https://github.com/FAUSheppy/telegram-http-gateway
synced 2025-12-06 15:11:35 +01:00
add additional md escape
This commit is contained in:
@@ -67,6 +67,12 @@ def sendToAll():
|
||||
def sendToAllIcinga():
|
||||
args = flask.request.json
|
||||
|
||||
# markdown escape #
|
||||
for key in args.keys():
|
||||
if type(args[key]) == str:
|
||||
print(key)
|
||||
args[key] = args[key].replace(".", "\\.").replace("-", "\\-")
|
||||
|
||||
# build message #
|
||||
serviceName = args["service_name"]
|
||||
if args["service_display_name"]:
|
||||
|
||||
Reference in New Issue
Block a user