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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stickers_downloader-0.1.2.tar.gz
  • Upload date:
  • Size: 6.9 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.2.tar.gz
Algorithm Hash digest
SHA256 68d499b19475a7ead4b97bbdd85c30b27fa9f670cb7771b3c74551b8833c360d
MD5 30cb00c96bc695b9facf6384ea066fb3
BLAKE2b-256 16662c73e458fb6973aa902d7e48196050b00bffe53a80853e7cbf6d125ed12e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stickers_downloader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2cbe6b39bf56e2ca288d08299da2049e32192ea3097fdf38d0d2a30a073f5c
MD5 04b81020f56f3ddbde08addb93dd60cc
BLAKE2b-256 e825f2ff4ca4bcdefcace2da43cc4d2ec27cbb00b848ae64ef8f42f11d8fc732

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