Skip to content

Telegram Bot that receive an LaTeX equation and uses LaTeX2IMG to send a sticker

License

Notifications You must be signed in to change notification settings

29antonioac/LaTeX2IMGbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaTeX2IMGbot

Telegram Bot that receive an LaTeX equation and uses LaTeX2IMG to send a sticker.

This is developed with pyTelegramBotAPI using the listener mechanism. My bot is @LaTeX2IMGbot but you can create your own one =).

Required packages

You need to install previously libwebp, Pillow and pyTelegramBotAPI. It's very important you get libwebp BEFORE pillow. You can get them using your package manager or using pip.

In Archlinux

# pacman -S libwebp python-pillow

In Debian-based distros

# apt-get install libwebp2 libwebp-dev

Using pip

# pip install Pillow
# pip install pyTelegramBotAPI

Usage

  1. Create a bot with the BotFather Telegram Bot
  2. Write the token in token.txt file
  3. Execute the bot in your server with ./bot.py
  4. In the Telegram client you can talk with your bot or add them to groups. All messages beginning with /latex or @aliasofyourbot will be catched by your bot.

Examples

Examples from my mobile

Enjoy it!

About

Telegram Bot that receive an LaTeX equation and uses LaTeX2IMG to send a sticker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages