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.
Files changed (44) hide show
  1. {multibotkit-0.1.17 → multibotkit-0.1.19}/PKG-INFO +2 -2
  2. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/telegram.py +15 -1
  3. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/telegram/outgoing.py +4 -0
  4. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/redis.py +1 -1
  5. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/PKG-INFO +2 -2
  6. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/requires.txt +1 -1
  7. {multibotkit-0.1.17 → multibotkit-0.1.19}/setup.py +3 -3
  8. {multibotkit-0.1.17 → multibotkit-0.1.19}/LICENSE +0 -0
  9. {multibotkit-0.1.17 → multibotkit-0.1.19}/README.md +0 -0
  10. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/__init__.py +0 -0
  11. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/__init__.py +0 -0
  12. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/base_dispatcher.py +0 -0
  13. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/fb.py +0 -0
  14. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/telegram.py +0 -0
  15. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/viber.py +0 -0
  16. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/dispatchers/vk.py +0 -0
  17. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/__init__.py +0 -0
  18. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/base_helper.py +0 -0
  19. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/fb.py +0 -0
  20. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/viber.py +0 -0
  21. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/helpers/vk.py +0 -0
  22. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/__init__.py +0 -0
  23. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/fb/__init__.py +0 -0
  24. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/fb/incoming.py +0 -0
  25. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/fb/outgoing.py +0 -0
  26. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/telegram/__init__.py +0 -0
  27. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/telegram/incoming.py +0 -0
  28. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/viber/__init__.py +0 -0
  29. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/viber/incoming.py +0 -0
  30. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/viber/outgoing.py +0 -0
  31. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/vk/__init__.py +0 -0
  32. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/vk/incoming.py +0 -0
  33. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/schemas/vk/outgoing.py +0 -0
  34. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/__init__.py +0 -0
  35. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/__init__.py +0 -0
  36. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/base.py +0 -0
  37. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/memory.py +0 -0
  38. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/managers/mongo.py +0 -0
  39. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit/states/state.py +0 -0
  40. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/SOURCES.txt +0 -0
  41. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/dependency_links.txt +0 -0
  42. {multibotkit-0.1.17 → multibotkit-0.1.19}/multibotkit.egg-info/top_level.txt +0 -0
  43. {multibotkit-0.1.17 → multibotkit-0.1.19}/pyproject.toml +0 -0
  44. {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.17
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.8
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,7 +1,7 @@
1
1
  import json
2
2
  from typing import Optional
3
3
 
4
- import aioredis
4
+ from redis import asyncio as aioredis
5
5
 
6
6
  from multibotkit.states.managers.base import BaseStateManager
7
7
  from multibotkit.states.state import State
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multibotkit
3
- Version: 0.1.17
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.8
12
+ Requires-Python: >=3.9
13
13
  Description-Content-Type: text/markdown
14
14
  Provides-Extra: mongo
15
15
  Provides-Extra: redis
@@ -7,4 +7,4 @@ aiofiles>=22.1.0
7
7
  motor>=3.0.0
8
8
 
9
9
  [redis]
10
- aioredis>=2.0.1
10
+ redis>=4.6.0
@@ -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.17",
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": ["aioredis>=2.0.1"]
25
+ "redis": ["redis>=4.6.0"]
26
26
  },
27
- python_requires=">=3.8",
27
+ python_requires=">=3.9",
28
28
  )
File without changes
File without changes
File without changes