multibotkit 0.1.29__py3-none-any.whl → 0.1.30__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.
@@ -268,16 +268,6 @@ class TelegramHelper(BaseHelper):
268
268
  r = await self._perform_async_request(url, data)
269
269
  return r
270
270
 
271
- def sync_decline_chat_join_request(
272
- self,
273
- chat_id: int,
274
- user_id: int,
275
- ):
276
- url = self.tg_base_url + "declineChatJoinRequest"
277
- data = {"chat_id": chat_id, "user_id": user_id}
278
- r = self._perform_sync_request(url, data)
279
- return r
280
-
281
271
  async def async_unban_chat_member(
282
272
  self,
283
273
  chat_id: int,
@@ -468,6 +458,34 @@ class TelegramHelper(BaseHelper):
468
458
  r = self._perform_sync_request(url, data)
469
459
  return r
470
460
 
461
+ async def async_get_chat(
462
+ self,
463
+ chat_id: int,
464
+ ):
465
+ url = self.tg_base_url + "getChat"
466
+ data = {"chat_id": chat_id}
467
+ r = await self._perform_async_request(url, data)
468
+ return r
469
+
470
+ def sync_get_chat(
471
+ self,
472
+ chat_id: int,
473
+ ):
474
+ url = self.tg_base_url + "getChat"
475
+ data = {"chat_id": chat_id}
476
+ r = self._perform_sync_request(url, data)
477
+ return r
478
+
479
+ def sync_decline_chat_join_request(
480
+ self,
481
+ chat_id: int,
482
+ user_id: int,
483
+ ):
484
+ url = self.tg_base_url + "declineChatJoinRequest"
485
+ data = {"chat_id": chat_id, "user_id": user_id}
486
+ r = self._perform_sync_request(url, data)
487
+ return r
488
+
471
489
  async def async_decline_chat_join_request(
472
490
  self,
473
491
  chat_id: int,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multibotkit
3
- Version: 0.1.29
3
+ Version: 0.1.30
4
4
  Summary: Functional library for developing multiplatform chatbots
5
5
  Home-page: https://github.com/Appvelox/multibotkit
6
6
  Author: Appvelox LLC
@@ -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=ZSl_LEZQ1Kh-NN2W_ItYKQnlkspcNbFigWuB2bGSyug,65316
11
+ multibotkit/helpers/telegram.py,sha256=31E5dafeBz9hmqKdmPvVb_mlE4DhM4no5wwl7i68Jt8,65756
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.29.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
- multibotkit-0.1.29.dist-info/METADATA,sha256=OvS9Mj20XXIPOJYSSahoB2kkpvEt8DONCz9MqY8Nq_o,826
36
- multibotkit-0.1.29.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
37
- multibotkit-0.1.29.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
- multibotkit-0.1.29.dist-info/RECORD,,
34
+ multibotkit-0.1.30.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
+ multibotkit-0.1.30.dist-info/METADATA,sha256=_vyVljZyTUMuLN-65yf9UOTmh6DEiBHQq63v517La1g,826
36
+ multibotkit-0.1.30.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
37
+ multibotkit-0.1.30.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
+ multibotkit-0.1.30.dist-info/RECORD,,