From a91307551dfec014e09d31aa496d5e9cc492ad3a Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 24 Nov 2020 00:50:45 -0500 Subject: [PATCH] [+] Wrap text before diffing --- src/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands.py b/src/commands.py index 32a5609..bef87a8 100644 --- a/src/commands.py +++ b/src/commands.py @@ -8,7 +8,7 @@ from telegram import Bot, Update from telegram.ext import Updater, CallbackContext, Job from src.database import Database -from src.utils import toJson, create, dictToString, render +from src.utils import toJson, create, dictToString, render, wrap helpMsg = """ Welcome! This bot monitors http changes! @@ -59,7 +59,7 @@ def createTaskCallback(user: str, taskName: str, request): def task(context: CallbackContext): # Send request - text = sendRequest(request) + text = wrap(sendRequest(request)) # First time http request if taskName not in cache[user]: