Metadata-Version: 2.4
Name: rubox
Version: 0.2.0
Summary: A powerful library designed for building bots on the Rubika platform.
Home-page: https://github.com/BELECTRON13/rubox
Author: mohammadali
Author-email: mohammadhoseinpoor167@gmail.com
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

<p align="center">
  <a href="github.com/belectron13/rubox">
    <img src="https://raw.githubusercontent.com/BELECTRON13/rubox/refs/heads/main/HoshaAI-1%20(1).png" width=260 height=210 alt="Rubox" />
  </a>
</p>

---

## ًں”§ Rubox
> **A powerful library designed for building bots on the Rubika platform.**

---

### ًں›  Simple Example
```python
from rubox import Client
from rubox.filters import commands
import asyncio

TOKEN = "BOT-TOKEN"

async def main():
	async with Client(TOKEN) as app:
		@app.on_message(commands(['start', 'help']))
		async def start_handler(message):
			await message.reply('Hello from Rubox!')
			
		await app.run()
		
asyncio.run(main())		
```

### ًں‘¾ Minimal Example
```python
from rubox import Client
import asyncio

TOKEN = "BOT-TOKEN"

async def main():
	async with Client(TOKEN) as app:
		await app.send_message('chat_id', 'Hello from **Rubox**!')
		
asyncio.run(main())
```

### ًںŒگ Webhook Setup
```python
from rubox import Client
from rubox.filters import commands
import asyncio

TOKEN = "BOT-TOKEN"

async def main():
	async with Client(TOKEN, set_webhook=True) as app:
		@app.on_message(commands(['start', 'help']))
		async def start_handler(message):
			await message.reply('Hello from Rubox!')
			
		await app.run(
		webhook_url='https://yourdomain.com',
    	path='/webhook',
    	host='0.0.0.0',
    	port=3000
		)
		
asyncio.run(main())
```

###  ًں“¦ Installation
```bash
pip install -U rubox
```

rubika.ir/RubikaBox
