Telegram Code Beautifier Bot is a Telegram bot that beautifies code snippets by generating an image of the code with the Carbon API. The bot adds user information such as name, username, and avatar to the image and sends it back to the user. The bot is built with Node.js and the Telegraf library.
To use the bot, simply send a code snippet to the bot and it will send back an image of the code with your name, username, and avatar added to the image. You can use the bot in private chats or group chats by mentioning the bot or replying to a message by mentioning the bot.
To install the bot, clone the repository and run npm install
to install the dependencies. Then, create a .env
file with your Telegram bot token:
BOT_TOKEN=<your_bot_token_here>
Finally, run npm start
to start the bot.
Contributions are welcome! If you find a bug or have a feature request, please open an issue. If you would like to contribute code, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.