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.
- 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
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
This project will be updated in production at every pushed tag to master branch.
Check this github workflow: deploy.yml
Check the Projects page.
Please see the changelog.md for more information on what has changed recently.
Please see the LICENSE.md file for more information.