Lulzx / texbot

Python Telegram Bot - Converts LaTeX markup into an image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TexBot

A Python Telegram Bot that converts LaTeX markup into an image

It uses the Flask microframework and the python-telegram-bot library. It's based on this example, uses a slightly modified version of this perl script and pickledb for basic persistence.

Please also check out my other bots, GitBot and Welcome Bot.

The file is prepared to be run by anyone by filling out the blanks in the configuration. The bot currently runs on @jh0ker_texbot

Required

  • Python 3.5 (may work with earlier versions, untested)
  • python-telegram-bot module (tested with version 5.2.0)
  • ImageMagick (tested with version 6.7.2-7)

You also need to fulfill the perl scripts' requirements, found at the bottom of it's page at fourmilab.ch

How to use

  • Install the script
  • Edit TOKEN bot.py
  • Follow Bot instructions

About

Python Telegram Bot - Converts LaTeX markup into an image

License:GNU General Public License v2.0


Languages

Language:Python 57.5%Language:Perl 42.5%