Skip to main content

نصب

pip install ParsMeet

شروع سریع

import ParsMeet

bot = ParsMeet.Bot(token="توکن شما")

@bot.on_message_all()
def handler(data):
    chat_id = data["chat_id"]
    text = data["text"]
    if text == "/start":
        bot.send_message(chat_id, "سلام! خوش آمدید.")

bot.run()

امکانات کلیدی

· ارسال و دریافت پیام (متن، عکس، فایل، ویرایش، حذف، ریپلای) · دکمه‌های شیشه‌ای (Inline Keyboard) با سازنده‌ی هوشمند KeyboardBuilder · هوش مصنوعی (رایگان و یا از طریق OpenAI) · مدیریت گروه (بن، آنبن، وارن با سیستم ۳ اخطاره، سکوت، سنجاق) · فیلتر تبلیغات و اسپم (تشخیص خودکار لینک و کلمات نامناسب) · سیستم نرخ محدودیت (Rate Limit) برای جلوگیری از اسپم · کش (Cache) برای ذخیره‌سازی موقت · یادآورها (Reminders) با زمان‌بندی خودکار · کامندهای سفارشی (Custom Commands) که کاربر می‌تواند به راحتی اضافه کند · کامندهای کنسول برای مدیریت ربات از ترمینال

کامندهای سفارشی

با استفاده از متد bot.add_new_custom_cmds() در کنسول، می‌توانید کامندهای جدیدی به فایل custom_cmds.py اضافه کنید.

# custom_cmds.py
def setup(bot):
    @bot.command("test")
    def test_command(data):
        bot.send_message(data["chat_id"], "پاسخ تست!")

کامندهای کنسول

· bot.off() – خاموش کردن ربات · bot.pause() – مکث · bot.on() – ادامه · bot.filter.on() – فعال‌سازی فیلتر تبلیغات · bot.filter.off() – غیرفعال‌سازی فیلتر · broadcast – ارسال پیام همگانی · send <user_id> – ارسال به کاربر خاص · ask – پرسش از هوش مصنوعی · bot.add_new_custom_cmds() – افزودن کامند جدید

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsmeet-2.0.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parsmeet-2.0.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file parsmeet-2.0.0.tar.gz.

File metadata

  • Download URL: parsmeet-2.0.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for parsmeet-2.0.0.tar.gz
Algorithm Hash digest
SHA256 326e37da34ef0f9fb5e02dcc5223afed68f1b474d90c7b4ac8718ee404777cd2
MD5 aab1fd612c9679820e65ffb565215634
BLAKE2b-256 2daa643afd7d01ff4f8af10f389025ead79048d49c28997b90545c8143d6598a

See more details on using hashes here.

File details

Details for the file parsmeet-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: parsmeet-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for parsmeet-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c8ebefdab8a08cd8c62f6aa0fa876dd6ccac247b80592dd34800aaeb2b6e9a2
MD5 c7ad46294a9605c482c410a27fce9e95
BLAKE2b-256 dac5ab0dc74bb7e55be822de641274333959d9d4776da629705f8d73279b4818

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page