Skip to content

Convert tex command to png in telegram bot as telegram not natively supports rendering tex

Notifications You must be signed in to change notification settings

lsnnt/tgtextopng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgtextopng

This is a simple bot written in python that enables to get the photo of tex format code

Deps

This project depends on telebot and requests

Api

Api used for getting photo of tex code is (latexcodecogs)[https://latex.codecogs.com/]

Running the bot

  • First of all clone the repo using
git clone https://github.com/lsnnt/tgtextopng.git
  • install the dependencies by running
pip3 install -r requirements.txt
  • Edit env.py to set TOKEN variable. (Get token from @botfather in tg)
  • Run
python3 main.py 
  • And the bot will start working

contributing

You are always free to open a PR for any suggestion 😃

About

Convert tex command to png in telegram bot as telegram not natively supports rendering tex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages