Bot can cache your stickers and then find duplicates in different sticker sets. When duplicates found bot will create new sticker set without duplicates and sends it to you. You will be the owner of all created sticker sets. Bot uses average hash algorithm from this library to find duplicates.
- First you need to create your own bot in Telegram.
- Next you need to pass to environment variables your bot's token into
TELEGRAM_TOKENvariable and your bot's name intoTELEGRAM_BOT_NAMEvariable as well. - Run:
python -m app.main. - Or build docker image and run it.
- That's all :)
To start caching sesstion type /cache and then send stickers from your sticker sets. Bot will cache whole sticker set and send you a message when it finished.
To fihish caching session type /finish.
To start filtering sesstion type /filter and then send stickers from your sticker sets. Bot will find and remove duplicates by early cached stickers from other sticker sets and create new sticker set with filtered stickers with same name. You will be the owner of created sticker sets.
To fihish filtering session type /finish.
- Type:
pip install pre-commit && pre-commit install - Make and commit your changes
- Push your changes
- Open Pull request
| Name | Required | Default | Description |
|---|---|---|---|
| STICKERS_ROOT_DIRECTORY | - | same as app dir | Cache root directory |
| AVERAGE_HASH_THRESHOLD_VALUE | 8 | Threshold value for average hash |
| Name | Required | Default | Description |
|---|---|---|---|
| TELEGRAM_TOKEN | - | "FILL_ME" | Telegram bot token |
| TELEGRAM_BOT_NAME | - | "FILL_ME" | Telegram bot name |