https://github.com/nonk123/emojify-tg-sticker
Slice an image into 100-by-100 PNGs to use in a Telegram emoji pack
https://github.com/nonk123/emojify-tg-sticker
bot cli emoji png slice sticker telegram telegram-bot tools
Last synced: 5 months ago
JSON representation
Slice an image into 100-by-100 PNGs to use in a Telegram emoji pack
- Host: GitHub
- URL: https://github.com/nonk123/emojify-tg-sticker
- Owner: nonk123
- License: unlicense
- Created: 2025-12-14T18:33:47.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-12-24T20:50:38.000Z (6 months ago)
- Last Synced: 2025-12-26T09:55:28.344Z (6 months ago)
- Topics: bot, cli, emoji, png, slice, sticker, telegram, telegram-bot, tools
- Language: Rust
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# emojify-tg-sticker
A library, a CLI tool, and a Telegram bot which slices whole pictures into custom emoji sets. This allows the picture to then be embedded into text messages as an "inline" sticker or a banner!
## Deploying a Bot
Assuming you have a Rust development environment set up, you can deploy your own bot by running the following one-liner from a Posix shell in a clone of this repository:
```sh
export TELOXIDE_TOKEN=123456789 # your bot's token from BotFather
export BOT_USERNAME=helloWorldBot # your bot's username (the one ending in `bot`)
cargo run --release --bin emojify-tg-sticker-bot
```
## CLI Tool Usage
Also provided is a simple CLI tool for slicing whole images into 100x100px Telegram emojis. Point this program to an image, and it'll produce a directory with the emoji slices in a numeric order.
Call the CLI tool as follows:
```sh
emojify-tg-sticker []
```
For example, this will output the emojis into `foo/*.png`:
```sh
emojify-tg-sticker foo.png
```
And this will output to `bar/*.png`:
```sh
emojify-tg-sticker foo.png bar
```
See `emojify-tg-sticker --help` for a complete description of the syntax.