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.9.tar.gz (7.6 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.9-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stickers_downloader-0.1.9.tar.gz
  • Upload date:
  • Size: 7.6 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.9.tar.gz
Algorithm Hash digest
SHA256 e844ab3997a111017bdc6b21311f9d164910979cd0dd719eec459448c10b13be
MD5 071ad7a53cd655b5f639136143d719f4
BLAKE2b-256 10879bb1c821f2e76f3792e7974e9031e8b80793e76ef13db1a23d84556f35bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stickers_downloader-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c59cd63c6fb74f9ce53bcde05ba4ccb2334b5a2a7d45025112f0f4899767393e
MD5 ca63ff96dcd24ba5498590089704ff3c
BLAKE2b-256 b6ae831df7453b8c13900fa1e770b277fe3b96b15ca7e2531ed53fbba0afb97e

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