Skip to main content

rubmix

یک کتابخانه برای تبدیل کیبورد های روبکا به روبپای سازنده روبکا: Mehdi Ahmadi | https://github.com/Mahdy-Ahmadi سازنده روبپای: Shayan Heidari | https://github.com/shayanheidari01 *** اگر ناراضی هستید به @Erfan_mirdehghan در روبیکا پیام دهید *** این دو کتابخانه به همراه این نصب می شوند

نصب

pip install rubmix

استفاده

#برای تبدیل کردن کیبورد های روبکا به روبپای
from rubmix import converter
# اگر خواستید می توانید برای ساخت کیبورد از بیلدر روبکا که در روبمیکس هست استفاده کنید
from rubmix import builders
# به این شکل باید ازش استفاده کنید
builders.InlineBuilder
# یا میتوانید از خود بیلدر روبکا استفاده کنید 
from rubka.button import InlineBuilder

#یک تابع بر ای تبدیل کردن میسازیم
def conv(keyboard):
    return converters.rubmix_to_keypad(keyboard)
#ساخت خود کیبورد با روبکا
inline = (
        InlineBuilder()
        .row( 
            InlineBuilder().button_textbox(
                id="enter_name",
                title="📝 وارد کردن نام",
                type_line="SingleLine",
                type_keypad="String",
                place_holder="نام خود را وارد کنید...",
                default_value=""
            )
        )
    .build()
)
#تست ارسال
@bot.on_update()
def main(bot,m: Update):
    m.reply("hi",inline_keypad=conv(inline))

اگر پیشنهادی دارید یا باگ دیدید، خوشحال می‌شم issue بزنید 🌱

Metadata

Release files for rubmix 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rubmix 1.0.1
File Size Uploaded
rubmix-1.0.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rubmix 1.0.1
File Interpreter ABI Platform
rubmix-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / rubmix-1.0.1.tar.gz

Download URL rubmix-1.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
63ec956b3eee2ca94cb9e5f139c8c4fe43f330a03f653c72b49f42668009536d
BLAKE2b-256 checksum
How to use checksums
cf303a2150b43c3ed439f6724b724baab5b00d1d65f07b0352e0a9dd0f83ecb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / rubmix-1.0.1-py3-none-any.whl

Download URL rubmix-1.0.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4423f9fbb70d2572cb6e8d20167303415f8501bf57ae82d6d66ac9ae1c7bdcf5
BLAKE2b-256 checksum
How to use checksums
25d5fc094fd5a338897d5c277f8819e82befe6344eccc05bae46af6389418c88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release 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