RubigramClient 1.6.9__py3-none-any.whl → 1.7.1__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.

Potentially problematic release.


This version of RubigramClient might be problematic. Click here for more details.

@@ -1,8 +1,29 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RubigramClient
3
- Version: 1.6.9
3
+ Version: 1.7.1
4
4
  Summary: A simple and flexible Python library for building advanced Rubika bots with powerful message handling, inline buttons, and custom filters.
5
5
  Author-email: Javad RZ <MrJavad.Email@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Javad
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
6
27
  Classifier: Programming Language :: Python :: 3
7
28
  Classifier: License :: OSI Approved :: MIT License
8
29
  Classifier: Operating System :: OS Independent
@@ -11,18 +32,36 @@ Description-Content-Type: text/markdown
11
32
  License-File: LICENSE
12
33
  Requires-Dist: aiohttp
13
34
  Requires-Dist: aiofiles
14
- Requires-Dist: pydantic
15
35
  Dynamic: license-file
16
36
 
17
37
  # Rubigram
18
38
  A lightweight Python library to build Rubika bots easily.
19
39
 
40
+ <div align="center">
41
+ <img src="http://rubigram.ir/Rubigram.jpg" alt="Rubigram Logo" width="200"/>
42
+ </div>
43
+
44
+
45
+
20
46
  ## Installation
21
47
  ```bash
22
48
  pip install RubigramClient
23
49
  ```
24
50
 
25
- ## Send Message
51
+ ## Quick Example
52
+ ```python
53
+ from rubigram import Client
54
+
55
+ bot = Client(token="YOUR_TOKEN")
56
+
57
+ @bot.on_message()
58
+ async def handler(client, message):
59
+ await message.reply("Hello Rubigram!")
60
+
61
+ bot.run()
62
+ ```
63
+
64
+ ## Reply and Edit message
26
65
  ```python
27
66
  from rubigram import Client, filters
28
67
  from rubigram.types import Update
@@ -30,8 +69,8 @@ from rubigram.types import Update
30
69
  bot = Client(token="YOUR_TOKEN_BOT")
31
70
 
32
71
  @bot.on_message(filters.private)
33
- async def welcome_message(client, message: Update):
34
- send = await message.reply("Hi, WELCOME TO RUBIGRAM")
72
+ async def echo(client, message: Update):
73
+ send = await message.reply(f"Hi, {message.new_message.text}")
35
74
  await send.edit_text("message was edited")
36
75
 
37
76
  bot.run()
@@ -104,3 +143,17 @@ async def main():
104
143
 
105
144
  asyncio.run(main())
106
145
  ```
146
+
147
+ ## Rubino
148
+ ```python
149
+ from rubigram.rubino import Rubino
150
+ import asyncio
151
+
152
+ async def main():
153
+ auth = "YOUR_AUTH_ACCOUNT"
154
+ async with Rubino(auth) as app:
155
+ info = await app.get_my_profile_info()
156
+ print(info)
157
+
158
+ asyncio.run(main())
159
+ ```
@@ -0,0 +1,15 @@
1
+ rubigram/__init__.py,sha256=yyPILotyVazCcf1qrKEu_67yYsvLGns2oJlSfLmvhd8,152
2
+ rubigram/client.py,sha256=XKP6b_JS7XlPYtqDndh5ZxaaxMis8icPmu9Wyk6JNLQ,7334
3
+ rubigram/enums.py,sha256=maI0tD9hQz6QUbjiAmBzMowfZbj1ao-6LqkYybSpbFY,2841
4
+ rubigram/filters.py,sha256=5NjyYLeSkDqGLGjQ_FsEgvaXqy6ZC73PEL3-_ei6B0g,6987
5
+ rubigram/method.py,sha256=auj9LOjDEK5mumndctHMbMMvjRvslusLNnJjmV-uPmo,14311
6
+ rubigram/network.py,sha256=Z976w5iV9IH7WV2DsIwe9pJU0yAwHhwIxFWTZRiDHbY,2858
7
+ rubigram/state.py,sha256=_g13o87MHfuudbgvbfu9vAOrSzw4GhdEYkD6dSn7t2s,997
8
+ rubigram/types.py,sha256=mMABq921FiWfOeurSJgtdkyIbz31bNE7ru14C9GyYSk,17195
9
+ rubigram/rubino/__init__.py,sha256=6-ztB6rLeIB3SV4tbVPPUxmNqHQUYQhDee6bnNQdECw,26
10
+ rubigram/rubino/client.py,sha256=nIYkADXe85BGK7N3qI3FB4fiMX1KuLfXtDATO8czhzc,18387
11
+ rubigramclient-1.7.1.dist-info/licenses/LICENSE,sha256=W2bekuLJMG2c-8SvTkJflMF5wY_Mx6rsXfXoCQvRzOI,1081
12
+ rubigramclient-1.7.1.dist-info/METADATA,sha256=A4OFG5w9NwzAn44SHxqsaCBw8IA1RnFRAedY7nTIPYk,4492
13
+ rubigramclient-1.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ rubigramclient-1.7.1.dist-info/top_level.txt,sha256=Mhg5HfkL6rLec5sI4ClGmwoqYUANAZUz8sVa1sT_cas,9
15
+ rubigramclient-1.7.1.dist-info/RECORD,,
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Javad
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,15 +0,0 @@
1
- rubigram/__init__.py,sha256=yyPILotyVazCcf1qrKEu_67yYsvLGns2oJlSfLmvhd8,152
2
- rubigram/client.py,sha256=Pg50Za2idur97ZgphmXgQvu0n0N63oPE04sqhujgNk0,5940
3
- rubigram/enums.py,sha256=maI0tD9hQz6QUbjiAmBzMowfZbj1ao-6LqkYybSpbFY,2841
4
- rubigram/filters.py,sha256=Al2LUNLS0hLg9F0BOdU6n1FRnyRLOYHUZFdYW5YEGCw,6852
5
- rubigram/method.py,sha256=tXEyXYisIfW3sVvCJ65oX2UAc4el9d3qfZI7hVPbZto,14276
6
- rubigram/network.py,sha256=Dx1j4PFMpFDF64zaxRWHzZymqq8GJgRNnUQJ2kfI6Vw,2854
7
- rubigram/state.py,sha256=_g13o87MHfuudbgvbfu9vAOrSzw4GhdEYkD6dSn7t2s,997
8
- rubigram/types.py,sha256=aSOQ04-b-jF1PuiRn3uEArfbxASSFhqlTovgJoC-3Ik,29760
9
- rubigram/rubino/__init__.py,sha256=6-ztB6rLeIB3SV4tbVPPUxmNqHQUYQhDee6bnNQdECw,26
10
- rubigram/rubino/client.py,sha256=3Z4lAItC0IKsp0vlRdUE_dhEw-IFolSZ2Aukg7Qeieg,3479
11
- rubigramclient-1.6.9.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- rubigramclient-1.6.9.dist-info/METADATA,sha256=3XkWFjF8__lLbm8zbah54x2ZfpCrYaQmVUH73D8bXc0,2655
13
- rubigramclient-1.6.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- rubigramclient-1.6.9.dist-info/top_level.txt,sha256=Mhg5HfkL6rLec5sI4ClGmwoqYUANAZUz8sVa1sT_cas,9
15
- rubigramclient-1.6.9.dist-info/RECORD,,
File without changes