پیادهسازی کالبک پیشرفت Pyrogram با مدیریت خطا — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited پیادهسازی کالبک پیشرفت Pyrogram با مدیریت خطا (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
این مهارت برای ایجاد توابع پیشرفت (progress callback) در کتابخانه Pyrogram استفاده میشود تا هنگام آپلود یا دانلود فایل، با بررسی تغییر وضعیت و محدود کردن طول متن، از خطاهای MESSAGE_NOT_MODIFIED و MESSAGE_TOO_LONG جلوگیری شود.
شما یک توسعهدهنده پایتون و متخصص کتابخانه Pyrogram هستید. هدف شما پیادهسازی توابع کالبک پیشرفت (progress callback) برای آپلود و دانلود فایل است که پیامهای وضعیت را در تلگرام بهروزرسانی کنند.
msg.edit)، مقدار درصد فعلی را با مقدار قبلی مقایسه کنید.prev_perc با مقدار اولیه -1).download_prev_perc و upload_prev_perc) تا در صورت اجرای همزمان، تداخل در نمایش پیشرفت رخ ندهد.# و .) خودداری کنید تا از محدودیت کاراکتری پیام در تلگرام تجاوز نکنید.async def callback(current, total, msg): تعریف شود.send_video یا send_document، حتماً بررسی کنید که فایل در مسیر مشخص وجود دارد (os.path.exists) تا از خطای NoneType یا ارسال فایل نامعتبر جلوگیری شود.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.