maxpyin 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.
- maxpyin/__init__.py +87 -0
- maxpyin/_version.py +3 -0
- maxpyin/async_bot.py +1145 -0
- maxpyin/bot.py +1171 -0
- maxpyin/calls.py +971 -0
- maxpyin/exceptions.py +60 -0
- maxpyin/keyboards.py +290 -0
- maxpyin/models.py +1476 -0
- maxpyin/py.typed +0 -0
- maxpyin/transport.py +407 -0
- maxpyin-0.1.0.dist-info/METADATA +271 -0
- maxpyin-0.1.0.dist-info/RECORD +15 -0
- maxpyin-0.1.0.dist-info/WHEEL +5 -0
- maxpyin-0.1.0.dist-info/licenses/LICENSE +21 -0
- maxpyin-0.1.0.dist-info/top_level.txt +1 -0
maxpyin/__init__.py
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Клиент Bot API мессенджера MAX.
|
|
2
|
+
|
|
3
|
+
Библиотека даёт два равноправных класса: синхронный ``MaxBot``
|
|
4
|
+
и асинхронный ``AsyncMaxBot``.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from ._version import __version__
|
|
8
|
+
from .async_bot import AsyncMaxBot
|
|
9
|
+
from .bot import MaxBot
|
|
10
|
+
from .exceptions import (
|
|
11
|
+
MaxApiError,
|
|
12
|
+
MaxAuthError,
|
|
13
|
+
MaxError,
|
|
14
|
+
MaxNetworkError,
|
|
15
|
+
MaxRateLimitError,
|
|
16
|
+
)
|
|
17
|
+
from .keyboards import (
|
|
18
|
+
CallbackButton,
|
|
19
|
+
ChatButton,
|
|
20
|
+
InlineKeyboard,
|
|
21
|
+
LinkButton,
|
|
22
|
+
MessageButton,
|
|
23
|
+
OpenAppButton,
|
|
24
|
+
RequestContactButton,
|
|
25
|
+
RequestGeoLocationButton,
|
|
26
|
+
)
|
|
27
|
+
from .models import (
|
|
28
|
+
BotCommand,
|
|
29
|
+
Callback,
|
|
30
|
+
Chat,
|
|
31
|
+
ChatAdmin,
|
|
32
|
+
ChatMember,
|
|
33
|
+
ChatPermission,
|
|
34
|
+
CommentPage,
|
|
35
|
+
Message,
|
|
36
|
+
MessageLink,
|
|
37
|
+
SenderAction,
|
|
38
|
+
Subscription,
|
|
39
|
+
SuccessResult,
|
|
40
|
+
Update,
|
|
41
|
+
UpdatePage,
|
|
42
|
+
UpdateType,
|
|
43
|
+
UploadResult,
|
|
44
|
+
UploadSlot,
|
|
45
|
+
User,
|
|
46
|
+
parse_update,
|
|
47
|
+
)
|
|
48
|
+
from .transport import DEFAULT_BASE_URL
|
|
49
|
+
|
|
50
|
+
__all__ = [
|
|
51
|
+
"DEFAULT_BASE_URL",
|
|
52
|
+
"AsyncMaxBot",
|
|
53
|
+
"BotCommand",
|
|
54
|
+
"Callback",
|
|
55
|
+
"CallbackButton",
|
|
56
|
+
"Chat",
|
|
57
|
+
"ChatAdmin",
|
|
58
|
+
"ChatButton",
|
|
59
|
+
"ChatMember",
|
|
60
|
+
"ChatPermission",
|
|
61
|
+
"CommentPage",
|
|
62
|
+
"InlineKeyboard",
|
|
63
|
+
"LinkButton",
|
|
64
|
+
"MaxApiError",
|
|
65
|
+
"MaxAuthError",
|
|
66
|
+
"MaxBot",
|
|
67
|
+
"MaxError",
|
|
68
|
+
"MaxNetworkError",
|
|
69
|
+
"MaxRateLimitError",
|
|
70
|
+
"Message",
|
|
71
|
+
"MessageButton",
|
|
72
|
+
"MessageLink",
|
|
73
|
+
"OpenAppButton",
|
|
74
|
+
"RequestContactButton",
|
|
75
|
+
"RequestGeoLocationButton",
|
|
76
|
+
"SenderAction",
|
|
77
|
+
"Subscription",
|
|
78
|
+
"SuccessResult",
|
|
79
|
+
"Update",
|
|
80
|
+
"UpdatePage",
|
|
81
|
+
"UpdateType",
|
|
82
|
+
"UploadResult",
|
|
83
|
+
"UploadSlot",
|
|
84
|
+
"User",
|
|
85
|
+
"__version__",
|
|
86
|
+
"parse_update",
|
|
87
|
+
]
|
maxpyin/_version.py
ADDED