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.6.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.6-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stickers_downloader-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 4f097efb4d4a4a42f355deb54b4f8ce9b677d9ca4cf1a226ba58a1396baa2d23
MD5 2d0135426d2ca42f4843623ab8a820af
BLAKE2b-256 99620637b79e1acb5b13c8a3a2097048210a02f099aee78a455ed9dc6b56e75c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stickers_downloader-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ce0846092df3ab45d431390a17df6462029786cbb43cde6253453f7d7f30ea3c
MD5 b3eef07826dc87ebbce9f40dfe5dd546
BLAKE2b-256 8fbfcbf9cf71a6d4a4f791fc7b7ad9841d85d363451c514a50d796c31bf41f20

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