This bot is live at https://t.me/graphviz_bot
- PHP >= 5
- Mysql >= 5.5
- Graphviz cli installed
- Clone the repo in a non-web-accesible place
- Add a symbolic link in your public_html or html folder pointing to the web folder of this project.
- Give permissions on the images folder to allow apache write files and also allow them to be accesible from the web.
- Edit the config.php file and provide your bot token, web-accesible path to the bot, and mysql credentials
- Edit the web/config.php and provide the unix path to the config.php from last point
- Create a symbolic link from the web/bot folder to a web/botBOTNUMBER. This is not mandatory, but your webhook path shouln't be easy to spot. If you do not care, modify .htaccesss file to allow accesses to the web/bot directory.
- Setup the webhook pointing to the symbolic link just created.
- Improve start method
- Improve logs
- Provide examples as /help command
- Add other graphs options (e.g. dot)
- Refactor code to make easier to add other startegies