Telegram sticker management tool
Project description
tsticker
📘 Overview
tsticker is a telegram sticker pack management cli.
Just put your images in the <sticker dir>/stickers directory and run tsticker push to override your cloud sticker
with local stickers.
Or you can use the tsticker sync command to override your local sticker pack with the cloud sticker pack.
Simple? Yes, it is!
- Auto select emoji for sticker
- Auto resize image for sticker
- Auto convert (gif,webm,mov ...) to webm for animated sticker
📦 Commands
| Command | Description |
|---|---|
tsticker init |
Initializes a new sticker pack. |
tsticker sync |
Override, Syncs the sticker pack from your local directory with changes from the cloud. |
tsticker push |
Override, Pushes changes from your local directory to the cloud, updating existing stickers. |
tsticker login |
Logs in to your Telegram account. |
tsticker logout |
Logs out of your Telegram account. |
tsticker help |
Displays help information for the CLI. |
tsticker download |
Download any sticker pack from the cloud to your local directory. |
tsticker trace |
Import cloud sticker pack from url. |
| Example | Description |
|---|---|
tsticker init -s regular -n 'sticker_id' -t 'My sticker title' |
Initialize a new sticker |
tsticker sync |
Sync sticker pack |
tsticker push |
Push sticker pack |
tsticker login -t <token> -u <user> |
Log in to Telegram |
tsticker logout |
Log out of Telegram |
tsticker download -l <any sticker link> |
Download any sticker pack, cant make changes |
tsticker trace -l <sticker link> |
Import sticker pack(can make changes) |
If you encounter any issues, please create a new Issue on our GitHub repository.
📋 Prerequisites
Wait! Before installing tsticker, ensure that your computer meets the following requirements:
Installing tsticker
The recommended way to install tsticker is through pipx for isolated environments:
pipx install tsticker
If pipx is not installed, install it with the following commands:
python3 -m pip install --user pipx
python3 -m pipx ensurepath
If you want to upgrade tsticker to the latest version, use the following command:
pipx upgrade tsticker
🔑 Login with Telegram
We need create a bot as a bridge to manage stickers.
Remember the bot can only auto manage stickers created by the bot itself, once you lost your bot, you can only manage stickers manually.
To create and manage stickers with tsticker, you need a Telegram Bot Token. Follow these steps:
- Open Telegram and search for the BotFather bot.
- Start a conversation with BotFather and send the command
/newbot. - Follow the instructions to create your bot and acquire the bot token.
The bot token provided by BotFather will be used as your BotToken.
Win + R, type cmd, and press Enter to open the command prompt. Run the following command to login
Replace <token> with your Telegram bot token and <user> with your Telegram user ID (you can get your user ID
from getidsbot by sending /my_id).
tsticker login -t <token> -u <user>
We use https://pypi.org/project/keyring/ to manage your tokens, which may require additional steps. If you encounter problems, refer to: https://github.com/jaraco/keyring
Adding or Removing Stickers
Just put your images in the <pack>/stickers directory and run tsticker push to override your cloud sticker pack with
the local sticker pack. We support almost all image formats, including png, jpg, jpeg, gif, webm, and
mov and so on.
Please don't operate lots of stickers at once time, if there is any error, it will break your workflow, but you can
use tsticker sync to recover.
tsticker push
even there are auto-resize and auto-convert, there still have some bad input such as too large image, too long video, so be careful.
Limitations of tsticker
| Note | Description |
|---|---|
| No Support for Tgs Stickers | tgs format is not supported for this cli. We using mixed png and webm format for static and animated stickers. |
| Rate Limiting | Each request is throttled to 2 seconds to avoid being blocked by Telegram. |
| Only Bot User | Stickers can only be managed through your bot or the official @Stickers bot by the sticker pack creator. |
📄 License
tsticker is released under the MIT License. See LICENSE for more information.
Enhance your Telegram sticker creation process with tsticker and become part of our community striving to simplify
sticker management through the command line!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsticker-0.1.16.tar.gz.
File metadata
- Download URL: tsticker-0.1.16.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.1 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00410ff63da4d9fedb3ef3a093943f3925002cf2a0aa1d21b3c29270177efa1
|
|
| MD5 |
817dd903a44b342e429701ae9629f85e
|
|
| BLAKE2b-256 |
66f794a34064598624b06c664baf8dd1d1217651e69abd892f7a372f75e5921f
|
File details
Details for the file tsticker-0.1.16-py3-none-any.whl.
File metadata
- Download URL: tsticker-0.1.16-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.1 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f55c84c6e7a2f473a3b1b471599ecf28a34176e195fbb131334a35e63b9e95b
|
|
| MD5 |
2a883a6464b1bee663166260067d48c9
|
|
| BLAKE2b-256 |
6af53aa1b9b0b8b959959d0548b502442e61063faf658ab9dd50925ee0d7c49b
|