- precondition images;
- edit configuration file according your specifics;
- launch ./telegram-sticker-upload.py;
- check telegram output to fix occured issues.
The image file should be in PNG format with a transparent layer and must fit into a 512x512 square (one of the sides must be 512px and the other 512px or less).
Fitting to 512x512 box can be easily be achieved using ImageMagick (link), using convert "*.png" -resize 512x512 sticker.png
.