nios-bot 0.1.0__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.
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nios-bot
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Асинхронный клиент для Bot API на базе httpx
|
|
5
|
+
Author-email: Ваше Имя <your-email@example.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.8
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: httpx>=0.20.0
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# NiosBot API
|
|
17
|
+
|
|
18
|
+
Асинхронная библиотека для работы с API ботов.
|
|
19
|
+
|
|
20
|
+
## Установка
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install nios-bot
|
|
24
|
+
```
|
|
25
|
+
Использование
|
|
26
|
+
|
|
27
|
+
```Python
|
|
28
|
+
import asyncio
|
|
29
|
+
from nios_bot import NiosBot
|
|
30
|
+
|
|
31
|
+
bot = NiosBot(token="your_token_here")
|
|
32
|
+
|
|
33
|
+
@bot.message_handler()
|
|
34
|
+
async def echo(message):
|
|
35
|
+
chat_id = message["chat"]["id"]
|
|
36
|
+
text = message.get("text", "")
|
|
37
|
+
await bot.send_message(chat_id=chat_id, text=f"Вы сказали: {text}")
|
|
38
|
+
|
|
39
|
+
async def main():
|
|
40
|
+
await bot.start_polling()
|
|
41
|
+
|
|
42
|
+
if __name__ == "__main__":
|
|
43
|
+
asyncio.run(main())
|
|
44
|
+
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
nios_bot-0.1.0.dist-info/licenses/LICENSE,sha256=jSK9IwltI-mx8eZHBkPnRLNDsAk40IY-se7nXIuDa6w,1084
|
|
2
|
+
nios_bot-0.1.0.dist-info/METADATA,sha256=gxvwBm5_rudAwSM-GLMwRErEbdWleR1ZNL8JWVm2MKc,1110
|
|
3
|
+
nios_bot-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
4
|
+
nios_bot-0.1.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
5
|
+
nios_bot-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
Copyright (c) 2026 NiosStudio
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|