Skip to main content

A Python package to download and convert Telegram animated stickers (TGS) to GIFs.

Project description

StickersDownloader

📌 معرفی (فارسی)

StickersDownloader یک بسته پایتون برای دانلود و تبدیل استیکرهای متحرک تلگرام (TGS) به GIF است. با این ابزار می‌توانید کل پک استیکرها را دانلود کنید یا استیکرهای خاص را انتخاب کنید. همچنین در حین پردازش، یک نوار پیشرفت رنگی و زیبا نمایش داده می‌شود.

ویژگی‌ها

  • دانلود استیکرهای متحرک تلگرام (.tgs) از هر پک استیکر.
  • تبدیل خودکار استیکرها به GIF.
  • امکان دانلود همه استیکرها یا انتخاب استیکرهای خاص.
  • خروجی زیبا و رنگی در کنسول با استفاده از rich.
  • مدیریت خودکار خطاهای شبکه و محدودیت‌های API تلگرام.

نصب

pip install StickersDownloader

نیاز به Python 3.8 یا بالاتر دارد.

استفاده در کد پایتون

from StickersDownloader import TelegramStickerDownloader
import asyncio

TOKEN = "توکن-ربات-تلگرام-شما"
STICKER_PACK_LINK = "https://t.me/addstickers/YourStickerPack"

downloader = TelegramStickerDownloader(TOKEN, STICKER_PACK_LINK)

async def main():
    # دانلود همه استیکرها
    await downloader.run()
    
    # یا دانلود استیکرهای خاص با شماره شاخص
    selected_indexes = [0, 2, 5]
    await downloader.run(selected_indexes=selected_indexes)

asyncio.run(main())

استفاده از طریق خط فرمان (CLI)

python -m StickersDownloader <TOKEN> <STICKER_PACK_LINK>

با این دستور، لیست استیکرها نمایش داده می‌شود و می‌توانید انتخاب کنید کدام استیکرها دانلود شوند.


📌 Features (English)

StickersDownloader is a Python package to download and convert Telegram animated stickers (TGS) to GIFs. It allows you to download an entire sticker pack or select specific stickers. A colorful progress bar shows while processing.

Features

  • Download Telegram animated stickers (.tgs) from any sticker pack.
  • Automatically convert stickers to GIF.
  • Download all stickers or select specific ones.
  • Beautiful console output with progress bars using rich.
  • Handles network errors and Telegram API restrictions.

Installation

pip install StickersDownloader

Requires Python 3.8+.

Usage in Python

from StickersDownloader import TelegramStickerDownloader
import asyncio

TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
STICKER_PACK_LINK = "https://t.me/addstickers/YourStickerPack"

downloader = TelegramStickerDownloader(TOKEN, STICKER_PACK_LINK)

async def main():
    # Download all stickers
    await downloader.run()
    
    # Or select specific stickers by index
    selected_indexes = [0, 2, 5]
    await downloader.run(selected_indexes=selected_indexes)

asyncio.run(main())

CLI Usage

python -m StickersDownloader <TOKEN> <STICKER_PACK_LINK>

It will show a preview of all stickers, letting you select which ones to download.


Dependencies


License

MIT License © Ali Ayati Qaffari


Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stickers_downloader-0.1.8.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stickers_downloader-0.1.8-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file stickers_downloader-0.1.8.tar.gz.

File metadata

  • Download URL: stickers_downloader-0.1.8.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for stickers_downloader-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0175eb4152b4d4c5120f7ae30722380cd6e37f24ad5a4ad75f4c20c503e45bbd
MD5 4804685ac42d595e1782c12d3e17dd11
BLAKE2b-256 26543426ff5df3d1d8cd3162a94a157bfe84ed76db3678f1d6a4b4f2f2d21b28

See more details on using hashes here.

File details

Details for the file stickers_downloader-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for stickers_downloader-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 663d9ecfa3fa90b348825f0c2fbd4cbc8d65b8e356011be5300bd1c69a495bcb
MD5 50786be7ab92f7a98bed151ad1bc10b7
BLAKE2b-256 7f044b7df378ebb63258576397359af513f03151480fd47472ae785a1389038a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page