multibotkit 0.1.17__tar.gz → 0.1.19__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.
- {multibotkit-0.1.17 → multibotkit-0.1.19}/PKG-INFO +2 -2
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/telegram.py +15 -1
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/telegram/outgoing.py +4 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/redis.py +1 -1
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/PKG-INFO +2 -2
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/requires.txt +1 -1
- {multibotkit-0.1.17 → multibotkit-0.1.19}/setup.py +3 -3
- {multibotkit-0.1.17 → multibotkit-0.1.19}/LICENSE +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/README.md +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/base_dispatcher.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/fb.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/telegram.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/viber.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/vk.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/base_helper.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/fb.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/viber.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/vk.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/fb/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/fb/incoming.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/fb/outgoing.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/telegram/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/telegram/incoming.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/viber/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/viber/incoming.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/viber/outgoing.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/vk/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/vk/incoming.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/vk/outgoing.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/__init__.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/base.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/memory.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/mongo.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/state.py +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/SOURCES.txt +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/dependency_links.txt +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/top_level.txt +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/pyproject.toml +0 -0
- {multibotkit-0.1.17 → multibotkit-0.1.19}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: multibotkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.19
|
|
4
4
|
Summary: Functional library for developing multiplatform chatbots
|
|
5
5
|
Home-page: https://github.com/Appvelox/multibotkit
|
|
6
6
|
Author: Appvelox LLC
|
|
@@ -9,7 +9,7 @@ Classifier: Intended Audience :: Developers
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
Provides-Extra: mongo
|
|
15
15
|
Provides-Extra: redis
|
|
@@ -28,7 +28,7 @@ from multibotkit.schemas.telegram.outgoing import (
|
|
|
28
28
|
ReplyKeyboardRemove,
|
|
29
29
|
Sticker,
|
|
30
30
|
Video,
|
|
31
|
-
Location,
|
|
31
|
+
Location, DeleteWebhookParams,
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
|
|
@@ -69,6 +69,20 @@ class TelegramHelper(BaseHelper):
|
|
|
69
69
|
r = await self._perform_async_request(url, data)
|
|
70
70
|
return r
|
|
71
71
|
|
|
72
|
+
def sync_delete_webhook(self, drop_pending_updates: Optional[bool] = False):
|
|
73
|
+
url = self.tg_base_url + "deleteWebhook"
|
|
74
|
+
params = DeleteWebhookParams(drop_pending_updates=drop_pending_updates)
|
|
75
|
+
data = params.dict(exclude_none=True)
|
|
76
|
+
r = self._perform_sync_request(url, data)
|
|
77
|
+
return r
|
|
78
|
+
|
|
79
|
+
async def async_delete_webhook(self, drop_pending_updates: Optional[bool] = False):
|
|
80
|
+
url = self.tg_base_url + "deleteWebhook"
|
|
81
|
+
params = DeleteWebhookParams(drop_pending_updates=drop_pending_updates)
|
|
82
|
+
data = params.dict(exclude_none=True)
|
|
83
|
+
r = await self._perform_async_request(url, data)
|
|
84
|
+
return r
|
|
85
|
+
|
|
72
86
|
def sync_send_locations(
|
|
73
87
|
self,
|
|
74
88
|
chat_id: int,
|
|
@@ -32,6 +32,10 @@ updates may be received for a short period of time.",
|
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
class DeleteWebhookParams(BaseModel):
|
|
36
|
+
drop_pending_updates: Optional[bool] = Field(None, title="Pass True to drop all pending updates")
|
|
37
|
+
|
|
38
|
+
|
|
35
39
|
class WebhookInfo(BaseModel):
|
|
36
40
|
url: str = Field(..., title="Webhook URL, may be empty if webhook is not set up")
|
|
37
41
|
has_custom_certificate: Optional[bool] = Field(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: multibotkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.19
|
|
4
4
|
Summary: Functional library for developing multiplatform chatbots
|
|
5
5
|
Home-page: https://github.com/Appvelox/multibotkit
|
|
6
6
|
Author: Appvelox LLC
|
|
@@ -9,7 +9,7 @@ Classifier: Intended Audience :: Developers
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
Provides-Extra: mongo
|
|
15
15
|
Provides-Extra: redis
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="multibotkit",
|
|
8
|
-
version="0.1.
|
|
8
|
+
version="0.1.19",
|
|
9
9
|
author="Appvelox LLC",
|
|
10
10
|
author_email="team@appvelox.ru",
|
|
11
11
|
description="Functional library for developing multiplatform chatbots",
|
|
@@ -22,7 +22,7 @@ setuptools.setup(
|
|
|
22
22
|
install_requires=["httpx>=0.23.0", "pydantic<2", "tenacity>=8.0.1", "aiofiles>=22.1.0"],
|
|
23
23
|
extras_require={
|
|
24
24
|
"mongo": ["motor>=3.0.0"],
|
|
25
|
-
"redis": ["
|
|
25
|
+
"redis": ["redis>=4.6.0"]
|
|
26
26
|
},
|
|
27
|
-
python_requires=">=3.
|
|
27
|
+
python_requires=">=3.9",
|
|
28
28
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|