saad-bot
مكتبة Python بسيطة باسم SAAD_BOT لإرسال رسائل Telegram بواجهة عربية أو مختصرة، وتعمل على Pydroid 3 وTermux دون اعتماديات خارجية.
التثبيت
python -m pip install saad-bot
الاستخدام الآمن
لا تضع التوكن الحقيقي داخل ملف تنشره أو ترسله للآخرين. استخدم متغيرات البيئة:
import os
import saad_bot
saad_bot.configure(
token=os.environ["SAAD_BOT_TOKEN"],
user_id=os.environ["SAAD_BOT_USER_ID"],
)
result = saad_bot.أرسل("السلام عليكم")
print(result["ok"])
أو استخدم الصيغة المختصرة المتوافقة مع الفكرة الأصلية:
import saad_bot
saad_bot.T = "ضع_التوكن_محليًا_فقط"
saad_bot.USER = "123456789"
saad_bot.s("السلام عليكم")
والأسماء المفضلة والأوضح هي:
saad_bot.TOKEN = "..."
saad_bot.USER_ID = "..."
saad_bot.send_message("السلام عليكم")
ملاحظات
تستخدم المكتبة واجهة Telegram Bot API الرسمية عبر HTTPS، وتعيد كائن JSON الناتج من Telegram. إذا رفض Telegram الطلب، تُرفع TelegramError. لا تستخدم توكنًا سبق نشره؛ ألغِه من BotFather وأنشئ توكنًا جديدًا.
Metadata
Release files for saad-bot 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saad_bot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for saad_bot-0.1.0-py3-none-any.whl |
Release files / saad_bot-0.1.0-py3-none-any.whl
| Download URL | saad_bot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d80b088bc6f1964e6ad80864ab7c134c8beb9cbc46586fd27b013a71da65a8d
|
|
BLAKE2b-256 checksum How to use checksums |
b5e7e7be86d3360b5218d5e552314448a4346ddc7b8243244a90674b5f9262f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for saad-bot 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.