multibotkit 0.1.19__py3-none-any.whl → 0.1.20__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.
@@ -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(self, chat_id: int, message_id: int, text: str):
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(self, chat_id: int, message_id: int, text: str):
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.19
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
@@ -12,14 +12,14 @@ Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.9
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
- Requires-Dist: httpx >=0.23.0
16
- Requires-Dist: pydantic <2
17
- Requires-Dist: tenacity >=8.0.1
18
- Requires-Dist: aiofiles >=22.1.0
15
+ Requires-Dist: httpx>=0.23.0
16
+ Requires-Dist: pydantic<2
17
+ Requires-Dist: tenacity>=8.0.1
18
+ Requires-Dist: aiofiles>=22.1.0
19
19
  Provides-Extra: mongo
20
- Requires-Dist: motor >=3.0.0 ; extra == 'mongo'
20
+ Requires-Dist: motor>=3.0.0; extra == "mongo"
21
21
  Provides-Extra: redis
22
- Requires-Dist: redis >=4.6.0 ; extra == 'redis'
22
+ Requires-Dist: redis>=4.6.0; extra == "redis"
23
23
 
24
24
  # multibotkit
25
25
  Functional library for developing multiplatform chatbots
@@ -8,7 +8,7 @@ multibotkit/dispatchers/vk.py,sha256=EsFOL2g3ju-nhsdyRY4JBTJxqQPmaPAB7Mkn462s4tk
8
8
  multibotkit/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  multibotkit/helpers/base_helper.py,sha256=b4vlmwELwGUIJE0DvD2Lkk0LO-b-w0VWAnEnnYawOKQ,1462
10
10
  multibotkit/helpers/fb.py,sha256=Z2Vo6A_fepVBQNcWCeelmH72zf_eKyXOXheUIlaIiBI,4329
11
- multibotkit/helpers/telegram.py,sha256=FVwH5anoJ2n-hcGiSiznGKB_2rhJDaUjtYbTGiPmKQ8,53188
11
+ multibotkit/helpers/telegram.py,sha256=8DDxLj5ia_-UPfnneXWldBHvFlI3OxWcB19Opm_5yvg,53584
12
12
  multibotkit/helpers/viber.py,sha256=74UQ3RtHS3iR8qA5XVeMOYfXaaMq2pF0cpItwehdr4o,9246
13
13
  multibotkit/helpers/vk.py,sha256=QlI9rGEjhzqS-jcFrnZJ651lDbC4m33SSHAC1zWDyUU,5930
14
14
  multibotkit/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -31,8 +31,8 @@ multibotkit/states/managers/base.py,sha256=KOO-wtbj984-lLq6u6LhxR79NTftQV2c5uUG6
31
31
  multibotkit/states/managers/memory.py,sha256=uN064uj2Q0ivK9LGEHJFaaaG6FEyXkIajS87TCAuYsI,1328
32
32
  multibotkit/states/managers/mongo.py,sha256=K8upbLT0892YA2Qi9dDPXDP5jvQoS16T8FW-qapv1Xk,1927
33
33
  multibotkit/states/managers/redis.py,sha256=XMpQ8LUdO9mZq3cZXlYOcGCC0VsSbsxBsEzVFH7TeEM,1681
34
- multibotkit-0.1.19.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
- multibotkit-0.1.19.dist-info/METADATA,sha256=X7eQQVuoi9O0EAWhqiNqmRSalDULVbDJWdB33iTvqe8,834
36
- multibotkit-0.1.19.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
- multibotkit-0.1.19.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
- multibotkit-0.1.19.dist-info/RECORD,,
34
+ multibotkit-0.1.20.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
+ multibotkit-0.1.20.dist-info/METADATA,sha256=cLXXRKUNiQeNXNDpbPcbF6IPEI3VpSXEiyJyF0ePiWo,826
36
+ multibotkit-0.1.20.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
37
+ multibotkit-0.1.20.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
+ multibotkit-0.1.20.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.45.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5