Telegram Bot to convert LaTex to Image
Contents
This bot works inline in personal as well as group chats to convert LaTeX equations to PNG image using math.sh API.
You can access the bot using this Telegram Link
The bot is hosted in IBM Cloud. Hence the manifest.yml
and Procfile
were added to this repo.
How to use the bot
How to fork and use the bot for yourself
- Fork the repo. Add
config.ini
with following content.
|
|
-
Install the dependencies from requirements.txt
pip3 install -r requirements.txt
-
Run the bot using
python3 bot.py
-
Start the bot from your account.
References
- https://lovemewithoutall.github.io/it/deploy-python-bot-on-IBM-bluemix/
- https://cloud.ibm.com/docs/apps?topic=apps-create-deploy-app-cli
- https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/inlinebot.py
- https://stackoverflow.com/questions/60915575/send-a-local-photo-from-inline-mode-in-a-telegram-bot