https://github.com/lukasss93/telegram-stickeroptimizer
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.
https://github.com/lukasss93/telegram-stickeroptimizer
laravel php telegram-bot
Last synced: 10 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/lukasss93/telegram-stickeroptimizer
- Owner: Lukasss93
- License: agpl-3.0
- Created: 2021-03-03T00:39:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-29T23:18:22.000Z (over 1 year ago)
- Last Synced: 2025-07-14T09:43:04.152Z (12 months ago)
- Topics: laravel, php, telegram-bot
- Language: PHP
- Homepage:
- Size: 5.95 MB
- Stars: 23
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.bot.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README

# Telegram Bot: Sticker Optimizer
[](https://t.me/newstickeroptimizerbot)

[](https://t.me/LKS93C)
[](https://t.me/Lukasss93Support)

> 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](https://t.me/stickers) bot.
## 🛠 Built with
- Programming language: PHP
- Language framework: [Laravel](https://github.com/laravel/laravel)
- Bot framework: [Nutgram](https://github.com/SergiX44/Nutgram)
## 🛡 Requirements
- Apache / nginx
- SSL support
- PHP ≥ 8.4
- 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
0. `cd `
1. `git clone https://github.com//telegram-stickeroptimizer.git`
2. `cd telegram-stickeroptimizer`
3. `php artisan migrate`
4. `cp .env.example .env`
5. Edit the `.env` file with your preferences
6. `wget https://getcomposer.org/download/latest-2.x/composer.phar`
7. `php composer.phar install`
8. `sudo chmod -R 775 bootstrap/`
9. `sudo chmod -R 775 storage/`
10. `php artisan storage:link`
11. Create a new cron: `* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1`
12. Configure a SystemD Unit to execute: `php artisan queue:work --queue=news --memory=512`
13. `php artisan nutgram:register-commands`
14. `php artisan nutgram:hook:set https://./hook`
## 🌠 Continuous deployment
This project will be updated in production at every pushed tag to master branch.
Check this github workflow: [deploy.yml](.github/workflows/deploy.yml)
## ☑ TODO List
Check the [Projects](https://github.com/Lukasss93/telegram-stickeroptimizer/projects/2) page.
## 📃 Changelog
Please see the [changelog.md](changelog.md) for more information on what has changed recently.
## 🏅 Credits
- [Luca Patera](https://github.com/Lukasss93)
- [All Contributors](https://github.com/Lukasss93/telegram-stickeroptimizer/contributors)
## 📖 License
Please see the [LICENSE.md](LICENSE.md) file for more information.