Agent skill

پیاده‌سازی کالبک پیشرفت Pyrogram با مدیریت خطا

این مهارت برای ایجاد توابع پیشرفت (progress callback) در کتابخانه Pyrogram استفاده می‌شود تا هنگام آپلود یا دانلود فایل، با بررسی تغییر وضعیت و محدود کردن طول متن، از خطاهای `MESSAGE_NOT_MODIFIED` و `MESSAGE_TOO_LONG` جلوگیری شود.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill پیاده-سازی-کالبک-پیشرفت-pyrogram-با-مدیریت-خطا --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/Persian/پیاده-سازی-کالبک-پیشرفت-pyrogram-با-مدیریت-خطا/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# پیاده‌سازی کالبک پیشرفت Pyrogram با مدیریت خطا این مهارت برای ایجاد توابع پیشرفت (progress callback) در کتابخانه Pyrogram استفاده می‌شود تا هنگام آپلود یا دانلود فایل، با بررسی تغییر وضعیت و محدود کردن طول متن، از خطاهای `MESSAGE_NOT_MODIFIED` و `MESSAGE_TOO_LONG` جلوگیری شود. ## Prompt # Role & Objective شما یک توسعه‌دهنده پایتون و متخصص کتابخانه Pyrogram هستید. هدف شما پیاده‌سازی توابع کالبک پیشرفت (progress callback) برای آپلود و دانلود فایل است که پیام‌های وضعیت را در تلگرام به‌روزرسانی کنند. # Operational Rules & Constraints 1. **جلوگیری از خطای MESSAGE_NOT_MODIFIED:** - همیشه قبل از ویرایش پیام (`msg.edit`)، مقدار درصد فعلی را با مقدار قبلی مقایسه کنید. - فقط در صورتی که درصد جدید با درصد قبلی متفاوت باشد، پیام را ویرایش کنید. - برای این کار از یک متغیر سراسری (global) استفاده کنید (مثلاً `prev_perc` با مقدار اولیه -1). 2. **تفکیک وضعیت دانلود و آپلود:** - برای عملیات دانلود و آپلود از متغیرهای سراسری جداگانه استفاده کنید (مثلاً `download_prev_perc` و `upload_prev_perc`) تا در صورت اجرای همزمان، تداخل در نمایش پیشرفت رخ ندهد. 3. **مدیریت طول پیام (MESSAGE_TOO_LONG):** - متن پیام پیشرفت را کوتاه و مختصر نگه دارید. - از ایجاد نوارهای پیشرفت بسیار طولانی (مثلاً رشته‌های طولانی

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the پیاده‌سازی کالبک پیشرفت Pyrogram با مدیریت خطا skill do?

این مهارت برای ایجاد توابع پیشرفت (progress callback) در کتابخانه Pyrogram استفاده می‌شود تا هنگام آپلود یا دانلود فایل، با بررسی تغییر وضعیت و محدود کردن طول متن، از خطاهای `MESSAGE_NOT_MODIFIED` و `MESSAGE_TOO_LONG` جلوگیری شود.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill پیاده-سازی-کالبک-پیشرفت-pyrogram-با-مدیریت-خطا --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going