multibotkit 0.1.26__py3-none-any.whl → 0.1.27__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.
@@ -11,9 +11,17 @@ class TelegramDispatcher(BaseDispatcher):
11
11
  ):
12
12
  if event.message is not None:
13
13
  sender_id = event.message.from_.id
14
- if event.callback_query is not None:
14
+ elif event.callback_query is not None:
15
15
  sender_id = event.callback_query.from_.id
16
-
16
+ elif event.chat_member is not None:
17
+ sender_id = event.chat_member.from_.id
18
+ elif event.chat_join_request is not None:
19
+ sender_id = event.chat_join_request.from_.id
20
+ elif event.my_chat_member is not None:
21
+ sender_id = event.my_chat_member.from_.id
22
+ else:
23
+ sender_id = None
24
+
17
25
  state_id = f"telegram_{sender_id}"
18
26
  state_object = await self.state_manager.get_state(state_id)
19
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multibotkit
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: Functional library for developing multiplatform chatbots
5
5
  Home-page: https://github.com/Appvelox/multibotkit
6
6
  Author: Appvelox LLC
@@ -2,7 +2,7 @@ multibotkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  multibotkit/dispatchers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  multibotkit/dispatchers/base_dispatcher.py,sha256=am-lVSsGvPYEEfYqAB3Ksjktg_FVEboguz2G0zgCirc,882
4
4
  multibotkit/dispatchers/fb.py,sha256=exb5918H4JNZsKqoIvXijJhOVcRPF6pECTwTN1lQRi0,1854
5
- multibotkit/dispatchers/telegram.py,sha256=OkpbD4PO5riRfrKBSKFgwLeuT3JVz-MDvEOC3kXBDGc,2421
5
+ multibotkit/dispatchers/telegram.py,sha256=R8ybh_L4OWNEV2JykPK6597cFoVt3-ZBJbmxf49gyhs,2761
6
6
  multibotkit/dispatchers/viber.py,sha256=Lqj_N86ej1Q2dx0ViBIHrFdsMS_KHh_yezkrfPvXuLE,1780
7
7
  multibotkit/dispatchers/vk.py,sha256=EsFOL2g3ju-nhsdyRY4JBTJxqQPmaPAB7Mkn462s4tk,1918
8
8
  multibotkit/helpers/__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.26.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
- multibotkit-0.1.26.dist-info/METADATA,sha256=F6RVrJKsWKqCGjpDB854vrDMfWcbdtAAstMbtV5YRW8,826
36
- multibotkit-0.1.26.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
37
- multibotkit-0.1.26.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
- multibotkit-0.1.26.dist-info/RECORD,,
34
+ multibotkit-0.1.27.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
+ multibotkit-0.1.27.dist-info/METADATA,sha256=BmGsEPrFnvWszWYyEGmo_pO4csWSeCsCOhD2ftH9pDs,826
36
+ multibotkit-0.1.27.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
37
+ multibotkit-0.1.27.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
+ multibotkit-0.1.27.dist-info/RECORD,,