https://github.com/novadaemon/codesintaxhighlight
Telegram bot to highligth code sintax
https://github.com/novadaemon/codesintaxhighlight
bot python telegram
Last synced: about 1 month ago
JSON representation
Telegram bot to highligth code sintax
- Host: GitHub
- URL: https://github.com/novadaemon/codesintaxhighlight
- Owner: novadaemon
- Created: 2020-07-07T00:53:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-23T20:17:59.000Z (about 2 years ago)
- Last Synced: 2025-12-29T10:51:57.116Z (6 months ago)
- Topics: bot, python, telegram
- Language: Python
- Homepage: https://telegram.me/CodeSintaxHighLightBot
- Size: 433 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @CodeSintaxHighLigthBot
**@CodeSintaxHighLightBot** helps you to format messages with programming language code
## Requirements
You need to have python installed in your system
https://www.python.org/downloads/
### Install required libraries
`pip install -r requirements.txt`
### Set configuration variables
Create a file named `.env` in project directory root
Add the below variables:
```
TOKEN='YourTelegramBotToken'
HCTI_API_USER_ID='YourHCTIAPIUserID'
HCTI_API_KEY='YourHCTIAPIKey'
```
**@CodeSintaxHighLightBot** use https://hcti.io/ API to generate an image with formatted message
## Run
`python codesintaxhighlightbot.py`
## Commands
- **/help** Show bot's help
- **/langs** Show supported langs
- **/format** Format the code
## Format command usage
For usage `/format` command use the below sintax
```python
/format python
def function hello():
print('hello')
```
## Talk to bot
https://telegram.me/CodeSintaxHighLightBot
## Screenshot
