martsor 0.2.0__tar.gz
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.
- martsor-0.2.0/PKG-INFO +63 -0
- martsor-0.2.0/README.md +46 -0
- martsor-0.2.0/martsor/__init__.py +32 -0
- martsor-0.2.0/martsor/client.py +1029 -0
- martsor-0.2.0/martsor/errors.py +21 -0
- martsor-0.2.0/martsor/keyboards.py +136 -0
- martsor-0.2.0/martsor/types.py +190 -0
- martsor-0.2.0/martsor.egg-info/PKG-INFO +63 -0
- martsor-0.2.0/martsor.egg-info/SOURCES.txt +12 -0
- martsor-0.2.0/martsor.egg-info/dependency_links.txt +1 -0
- martsor-0.2.0/martsor.egg-info/top_level.txt +1 -0
- martsor-0.2.0/pyproject.toml +48 -0
- martsor-0.2.0/setup.cfg +4 -0
- martsor-0.2.0/tests/test_client.py +100 -0
martsor-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: martsor
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Python library for building Soroush Plus bots.
|
|
5
|
+
Author: HidMart
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/HidMart/martsor
|
|
8
|
+
Project-URL: Repository, https://github.com/HidMart/martsor
|
|
9
|
+
Keywords: soroush,soroushplus,splus,bot,telegram-like,python
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Requires-Python: >=3.8
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# martsor
|
|
19
|
+
|
|
20
|
+
Python library for building bots with the Soroush Plus Bot API.
|
|
21
|
+
|
|
22
|
+
Version: 0.2.0
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
- Soroush Plus Bot API
|
|
28
|
+
- Long polling
|
|
29
|
+
- getUpdates
|
|
30
|
+
- sendMessage
|
|
31
|
+
- sendPhoto
|
|
32
|
+
- sendDocument
|
|
33
|
+
- sendVideo
|
|
34
|
+
- sendAudio
|
|
35
|
+
- sendVoice
|
|
36
|
+
- sendAnimation
|
|
37
|
+
- sendSticker
|
|
38
|
+
- sendLocation
|
|
39
|
+
- sendContact
|
|
40
|
+
- sendMediaGroup
|
|
41
|
+
- forwardMessage
|
|
42
|
+
- copyMessage
|
|
43
|
+
- getFile
|
|
44
|
+
- getChat
|
|
45
|
+
- deleteMessage
|
|
46
|
+
- editMessageText
|
|
47
|
+
- editMessageCaption
|
|
48
|
+
- editMessageMedia
|
|
49
|
+
- editMessageReplyMarkup
|
|
50
|
+
- InlineKeyboard
|
|
51
|
+
- Callback Query
|
|
52
|
+
- Reply Keyboard
|
|
53
|
+
- Force Reply
|
|
54
|
+
- Bot commands
|
|
55
|
+
- Webhook API methods
|
|
56
|
+
- MarkdownV2 / HTML parse mode support
|
|
57
|
+
- No external dependencies
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install martsor
|
martsor-0.2.0/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# martsor
|
|
2
|
+
|
|
3
|
+
Python library for building bots with the Soroush Plus Bot API.
|
|
4
|
+
|
|
5
|
+
Version: 0.2.0
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Features
|
|
9
|
+
|
|
10
|
+
- Soroush Plus Bot API
|
|
11
|
+
- Long polling
|
|
12
|
+
- getUpdates
|
|
13
|
+
- sendMessage
|
|
14
|
+
- sendPhoto
|
|
15
|
+
- sendDocument
|
|
16
|
+
- sendVideo
|
|
17
|
+
- sendAudio
|
|
18
|
+
- sendVoice
|
|
19
|
+
- sendAnimation
|
|
20
|
+
- sendSticker
|
|
21
|
+
- sendLocation
|
|
22
|
+
- sendContact
|
|
23
|
+
- sendMediaGroup
|
|
24
|
+
- forwardMessage
|
|
25
|
+
- copyMessage
|
|
26
|
+
- getFile
|
|
27
|
+
- getChat
|
|
28
|
+
- deleteMessage
|
|
29
|
+
- editMessageText
|
|
30
|
+
- editMessageCaption
|
|
31
|
+
- editMessageMedia
|
|
32
|
+
- editMessageReplyMarkup
|
|
33
|
+
- InlineKeyboard
|
|
34
|
+
- Callback Query
|
|
35
|
+
- Reply Keyboard
|
|
36
|
+
- Force Reply
|
|
37
|
+
- Bot commands
|
|
38
|
+
- Webhook API methods
|
|
39
|
+
- MarkdownV2 / HTML parse mode support
|
|
40
|
+
- No external dependencies
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install martsor
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""martsor - Python library for building Soroush Plus bots."""
|
|
2
|
+
|
|
3
|
+
from .client import Bot, Client
|
|
4
|
+
from .errors import APIError, MartsorError
|
|
5
|
+
from .keyboards import (
|
|
6
|
+
Button,
|
|
7
|
+
ForceReply,
|
|
8
|
+
InlineKeyboard,
|
|
9
|
+
ReplyKeyboard,
|
|
10
|
+
ReplyKeyboardRemove,
|
|
11
|
+
)
|
|
12
|
+
from .types import CallbackQuery, Chat, Message, Update, User
|
|
13
|
+
|
|
14
|
+
__version__ = "0.2.0"
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"Bot",
|
|
18
|
+
"Client",
|
|
19
|
+
"Button",
|
|
20
|
+
"InlineKeyboard",
|
|
21
|
+
"ReplyKeyboard",
|
|
22
|
+
"ReplyKeyboardRemove",
|
|
23
|
+
"ForceReply",
|
|
24
|
+
"User",
|
|
25
|
+
"Chat",
|
|
26
|
+
"Message",
|
|
27
|
+
"CallbackQuery",
|
|
28
|
+
"Update",
|
|
29
|
+
"MartsorError",
|
|
30
|
+
"APIError",
|
|
31
|
+
"__version__",
|
|
32
|
+
]
|