commit 207776d2485af98724c0714280649ec7e75aac57 parent 3a40bde4e85be03084481bbdc112d5c8fa4d41e0 Author: torresjrjr <b.torres.edu@gmail.com> Date: Wed, 15 Apr 2020 20:24:19 +0100 Attempt to fix breaking API with percent encodings Diffstat:
M | bot.py | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bot.py b/bot.py @@ -39,8 +39,8 @@ Learn more at t.me/botfather quit() IMAGE_TYPE = "png" -IMAGE_DPI = 512 -API = f"https://latex.codecogs.com/{IMAGE_TYPE}.latex?\\{IMAGE_DPI}dpi&space;%s" +IMAGE_DPI = "512" +API = f"https://latex.codecogs.com/{IMAGE_TYPE}.latex?%5C{IMAGE_DPI}dpi%20%s" EXAMPLE_LATEX = r"\text{The quadratic formula} \\ " + "\n" + \ r"x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}"