Skip to main content

This is a powerful library for building self robots in Rubika

Project description

Pyrubi 1.5.1

Pyrubi is a powerful and easy library for building self robots in Rubika پای روبی یک کتابخانه قدرت مند و آسان برای ساخت ربات سلف در اپلیکیشن روبیکا است

Pyrubi Library 1.5.1 GitHub


Example | مثال :

# Import the Bot and Message classes from the pyrubi library.
# کلاس های Bot و Message را از کتابخانه pyrubi ایمپورت کنید.
from pyrubi import Bot, Message

# Configure the AUTH key with the library in this way.
# به این صورت شناسه AUTH را با کتابخانه پیکربندی کنید.
bot = Bot('TOKEN')

# You can receive your account updates with the on_message generator function of the Bot class.
# با تابع سازنده on_message از کلاس Bot می توانید آپدیت های اکانت خود را دریافت کنید.
for msg in bot.on_message():

    # In this way, separate the received update data with the Message class.
    # به این صورت دیتای اپدیت دریافت شده را با کلاس Message جدا کنید.
    m = Message(msg)

    # If the text of the received message was equal to Hello ...
    # درصورتی که متن پیام دریافت شده با Hello برابر بود ...
    if m.text() == 'Hello':

        # You can send a text message with the send_text method.
        # با متود send_text می توانید یک پیام متنی ارسال کنید.
        bot.send_text(m.chat_id(), 'Hello from Pyrubi Library', m.message_id())

Features | امکانات :

Fast : The minimum request time is 0.07000 seconds and the maximum request time is 0.30000 seconds, Easy : All methods and features are designed as easy and optimal as possible, Powerful : While the library is simple, it has high speed and features that make your work easier and faster سریع : # کمترین زمان درخواست 0.07000 ثانیه و بیشترین زمان درخواست 0.20000 ثانیه است, آسان : تمام متود ها و قابلیت ها تا حد امکان اسان و بهینه طراحی شده است, قدرت مند : کتابخانه در حین حال که ساده است از سرعت بالا و امکاناتی برخوردار است که کار شما را راحتر و سریع تر می کند


Install or Update | نصب یا آپدیت :

python -m pip install -U pyrubi

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

pyrubi-1.5.1.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

pyrubi-1.5.1-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page