lateximgbot

Latex image Telegram bot
Log | Files | Refs | README | LICENSE

commit b3daac4b0c5f15ac6ea14cfd6d22349ab318abe3
parent 207776d2485af98724c0714280649ec7e75aac57
Author: torresjrjr <b.torres.edu@gmail.com>
Date:   Wed, 15 Apr 2020 20:31:06 +0100

Fix Python percent format API string

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -40,7 +40,7 @@ Learn more at t.me/botfather IMAGE_TYPE = "png" IMAGE_DPI = "512" -API = f"https://latex.codecogs.com/{IMAGE_TYPE}.latex?%5C{IMAGE_DPI}dpi%20%s" +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}"