Awesome
<img src="https://i.imgur.com/6Wi7eHS.png" alt="logo"/>Telegram Bot: Sticker Optimizer
Optimize an image or sticker to a png file to make its size smaller than or equal to 512Kb, so that you will be able to add it to a sticker pack using the @stickers bot.
🛠 Built with
🛡 Requirements
- Apache / nginx
- SSL support
- PHP ≥ 8.3
- ext-json
- ext-pdo
- ext-gd
- webp support
- Imagick
- MariaDB ≥ 10.2.3 or Postgresql ≥ 9.5 or SQLite with JSON1 extension
- SystemD (to process async jobs)
- Crontab (to update cached statistics)
- GIT
🗃️ Flow chart
🚀 First deploy
cd <vhost-folder>
git clone https://github.com/<username>/telegram-stickeroptimizer.git
cd telegram-stickeroptimizer
php artisan migrate
cp .env.example .env
- Edit the
.env
file with your preferences wget https://getcomposer.org/download/latest-2.x/composer.phar
php composer.phar install
sudo chmod -R 775 bootstrap/
sudo chmod -R 775 storage/
php artisan storage:link
- Create a new cron:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
- Configure a SystemD Unit to execute:
php artisan queue:work --queue=news --memory=512
php artisan nutgram:register-commands
php artisan nutgram:hook:set https://<domain>.<tls>/hook
🌠 Continuous deployment
This project will be updated in production at every pushed tag to master branch.<br> Check this github workflow: deploy.yml
☑ TODO List
Check the Projects page.
📃 Changelog
Please see the changelog.md for more information on what has changed recently.
🏅 Credits
📖 License
Please see the LICENSE.md file for more information.