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.4.tar.gz (6.8 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.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stickers_downloader-0.1.4.tar.gz
  • Upload date:
  • Size: 6.8 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.4.tar.gz
Algorithm Hash digest
SHA256 5ad1ce82adc29b94734ba7d856fead747b54c9c4b6f3b526504430689d0a3cb2
MD5 9c93e73f317c7695ea824469e1e014ea
BLAKE2b-256 b9260fe2d46874fb7123680d848ef0d81c45d2b14564c04f716c6e34c61d2fc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stickers_downloader-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fdad733f5fff1817c3bf5819338b8a88882d50988657d6e2de495c2f54394b38
MD5 b7265268b814a86bf686e403b7be690e
BLAKE2b-256 7c2199c0ea64e694d89d622dfccbbe5fdf28a9a26d00c699329f308272c5854e

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