Rubka 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rubka/exceptions.py ADDED
@@ -0,0 +1,4 @@
1
+ class APIRequestError(Exception):
2
+ """Raised when an API request fails."""
3
+ raise Exception
4
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Rubka
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Python library for interacting with Rubika Bot API.
5
5
  Home-page: https://github.com/Mahdy-Ahmadi/Rubka
6
6
  Download-URL: https://github.com/Mahdy-Ahmadi/Rubka/archive/refs/tags/v0.1.0.tar.gz
@@ -30,39 +30,39 @@ Dynamic: requires-python
30
30
  Dynamic: summary
31
31
 
32
32
 
33
- # rubibot
33
+ # rubka
34
34
 
35
35
  A Python library for interacting with the Rubika Bot API using the Robot class.
36
36
 
37
37
  ## Overview
38
- rubibot is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
38
+ rubka is a powerful and easy-to-use Python SDK designed to simplify building bots for the Rubika platform.
39
39
  It supports sending messages, editing, polls, locations, contacts, keyboards, and managing bot commands with a clean and modern interface.
40
40
 
41
41
  ## Installation
42
42
 
43
43
  ```bash
44
- pip install rubibot
44
+ pip install rubka
45
45
  ```
46
46
 
47
47
  Or install from source:
48
48
 
49
49
  ```bash
50
- git clone https://github.com/Mahdy-Ahmadi/rubibot.git
51
- cd rubibot
50
+ git clone https://github.com/Mahdy-Ahmadi/rubka.git
51
+ cd rubka
52
52
  pip install .
53
53
  ```
54
54
 
55
55
  ## Quick Start
56
56
 
57
57
  ```python
58
- from rubibot import Robot, on_message
58
+ from rubka import Robot, on_message
59
59
 
60
60
  bot = Robot(token="YOUR_BOT_TOKEN")
61
61
 
62
62
  @on_message
63
63
  def handle_message(bot, chat_id, message_id, text, sender_id):
64
64
  if text == "/start":
65
- bot.send_message(chat_id, "Hello! Welcome to rubibot.")
65
+ bot.send_message(chat_id, "Hello! Welcome to rubka.")
66
66
 
67
67
  updates = bot.get_updates(limit=10)
68
68
  for update in updates.get("updates", []):
@@ -299,7 +299,7 @@ The main class to interact with Rubika Bot API.
299
299
  Usage:
300
300
 
301
301
  ```python
302
- from rubibot import on_message
302
+ from rubka import on_message
303
303
 
304
304
  @on_message
305
305
  def my_handler(bot, chat_id, message_id, text, sender_id):
@@ -2,10 +2,11 @@ rubka/__init__.py,sha256=3f4H6Uj1ylrfBYlTHmTvzZSvaPJsdNhCocyX3Bbvuv0,254
2
2
  rubka/api.py,sha256=SJnuOXZdrj5llnkRltPBPNFXvixzaQDufWU5Zm7B8jk,6858
3
3
  rubka/config.py,sha256=Bck59xkOiqioLv0GkQ1qPGnBXVctz1hKk6LT4h2EPx0,78
4
4
  rubka/decorators.py,sha256=hGwUoE4q2ImrunJIGJ_kzGYYxQf1ueE0isadqraKEts,1157
5
+ rubka/exceptions.py,sha256=aJSPOmBWKfMSSLBznUmT5h1ckPmvk8wXDZZzSzESFcQ,111
5
6
  rubka/keyboards.py,sha256=7nr-dT2bQJVQnQ6RMWPTSjML6EEk6dsBx-4d8pab8xk,488
6
7
  rubka/logger.py,sha256=VhxaryxN_SqUmCX39nym2A6JiEPI-jEG22htPBP88Y4,289
7
8
  rubka/utils.py,sha256=XUQUZxQt9J2f0X5hmAH_MH1kibTAfdT1T4AaBkBhBBs,148
8
- rubka-0.1.0.dist-info/METADATA,sha256=4IWoZUdeb0S3thX0hG-MdFbDsNVi33IQGgxr5ZKUdsk,8184
9
- rubka-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
- rubka-0.1.0.dist-info/top_level.txt,sha256=vy2A4lot11cRMdQS-F4HDCIXL3JK8RKfu7HMDkezJW4,6
11
- rubka-0.1.0.dist-info/RECORD,,
9
+ rubka-0.1.2.dist-info/METADATA,sha256=2nIkRcBZ4PL2-Iyht8pXqfRKeycPOYmzcz-QC0iyPuI,8168
10
+ rubka-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ rubka-0.1.2.dist-info/top_level.txt,sha256=vy2A4lot11cRMdQS-F4HDCIXL3JK8RKfu7HMDkezJW4,6
12
+ rubka-0.1.2.dist-info/RECORD,,
File without changes