multibotkit 0.1.18__tar.gz → 0.1.20__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.18 → multibotkit-0.1.20}/PKG-INFO +2 -2
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/helpers/telegram.py +20 -2
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/managers/redis.py +1 -1
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit.egg-info/PKG-INFO +2 -2
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit.egg-info/requires.txt +1 -1
- {multibotkit-0.1.18 → multibotkit-0.1.20}/setup.py +3 -3
- {multibotkit-0.1.18 → multibotkit-0.1.20}/LICENSE +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/README.md +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/dispatchers/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/dispatchers/base_dispatcher.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/dispatchers/fb.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/dispatchers/telegram.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/dispatchers/viber.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/dispatchers/vk.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/helpers/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/helpers/base_helper.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/helpers/fb.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/helpers/viber.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/helpers/vk.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/fb/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/fb/incoming.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/fb/outgoing.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/telegram/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/telegram/incoming.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/telegram/outgoing.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/viber/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/viber/incoming.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/viber/outgoing.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/vk/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/vk/incoming.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/schemas/vk/outgoing.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/managers/__init__.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/managers/base.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/managers/memory.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/managers/mongo.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit/states/state.py +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit.egg-info/SOURCES.txt +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit.egg-info/dependency_links.txt +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/multibotkit.egg-info/top_level.txt +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/pyproject.toml +0 -0
- {multibotkit-0.1.18 → multibotkit-0.1.20}/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.20
|
|
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
|
|
@@ -205,15 +205,33 @@ class TelegramHelper(BaseHelper):
|
|
|
205
205
|
r = await self._perform_async_request(url, data)
|
|
206
206
|
return r
|
|
207
207
|
|
|
208
|
-
def sync_edit_message_text(
|
|
208
|
+
def sync_edit_message_text(
|
|
209
|
+
self,
|
|
210
|
+
chat_id: int,
|
|
211
|
+
message_id: int,
|
|
212
|
+
text: str,
|
|
213
|
+
reply_markup: Optional[InlineKeyboardMarkup] = None,
|
|
214
|
+
):
|
|
209
215
|
url = self.tg_base_url + "editMessageText"
|
|
210
216
|
data = {"chat_id": chat_id, "message_id": message_id, "text": text}
|
|
217
|
+
if reply_markup:
|
|
218
|
+
data["reply_markup"] = reply_markup.dict(exclude_none=True)
|
|
219
|
+
|
|
211
220
|
r = self._perform_sync_request(url, data)
|
|
212
221
|
return r
|
|
213
222
|
|
|
214
|
-
async def async_edit_message_text(
|
|
223
|
+
async def async_edit_message_text(
|
|
224
|
+
self,
|
|
225
|
+
chat_id: int,
|
|
226
|
+
message_id: int,
|
|
227
|
+
text: str,
|
|
228
|
+
reply_markup: Optional[InlineKeyboardMarkup] = None,
|
|
229
|
+
):
|
|
215
230
|
url = self.tg_base_url + "editMessageText"
|
|
216
231
|
data = {"chat_id": chat_id, "message_id": message_id, "text": text}
|
|
232
|
+
if reply_markup:
|
|
233
|
+
data["reply_markup"] = reply_markup.dict(exclude_none=True)
|
|
234
|
+
|
|
217
235
|
r = await self._perform_async_request(url, data)
|
|
218
236
|
return r
|
|
219
237
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: multibotkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.20
|
|
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.20",
|
|
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
|
|
File without changes
|