multibotkit 0.1.16__py3-none-any.whl → 0.1.17__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.
@@ -163,15 +163,31 @@ class TelegramHelper(BaseHelper):
163
163
  r = await self._perform_async_request(url, data)
164
164
  return r
165
165
 
166
- def sync_answer_callback_query(self, callback_query_id: str):
166
+ def sync_answer_callback_query(
167
+ self,
168
+ callback_query_id: str,
169
+ text: Optional[str] = None,
170
+ show_alert: Optional[bool] = False,
171
+ ):
167
172
  url = self.tg_base_url + "answerCallbackQuery"
168
173
  data = {"callback_query_id": callback_query_id}
174
+ if show_alert and text is not None:
175
+ data["show_alert"] = show_alert
176
+ data["text"] = text
169
177
  r = self._perform_sync_request(url, data)
170
178
  return r
171
179
 
172
- async def async_answer_callback_query(self, callback_query_id: str):
180
+ async def async_answer_callback_query(
181
+ self,
182
+ callback_query_id: str,
183
+ text: Optional[str] = None,
184
+ show_alert: Optional[bool] = False,
185
+ ):
173
186
  url = self.tg_base_url + "answerCallbackQuery"
174
187
  data = {"callback_query_id": callback_query_id}
188
+ if show_alert and text is not None:
189
+ data["show_alert"] = show_alert
190
+ data["text"] = text
175
191
  r = await self._perform_async_request(url, data)
176
192
  return r
177
193
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multibotkit
3
- Version: 0.1.16
3
+ Version: 0.1.17
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=hghsllqnj3cg1jbRZUWnefxf4uwnN_aL5bOBJrdoP3Q,52059
11
+ multibotkit/helpers/telegram.py,sha256=vk2VjAOFSJSXfwGlhgi-7JgIeq6Z9hWKkWMPWiBR8hc,52505
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=C9HTjfVvttzOizycprWHd2C86DfKqd2Nyq5-5CqQNDI,1659
34
- multibotkit-0.1.16.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
- multibotkit-0.1.16.dist-info/METADATA,sha256=FTmehEFIiy7O3uD7dmN2anZhiqJ8NqduiW1qJfk2X6w,837
36
- multibotkit-0.1.16.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
37
- multibotkit-0.1.16.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
- multibotkit-0.1.16.dist-info/RECORD,,
34
+ multibotkit-0.1.17.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
35
+ multibotkit-0.1.17.dist-info/METADATA,sha256=Ri9Ycn2xmQUzY96Hljk5ILCHuA_WegZOM9J9IKcS-4Q,837
36
+ multibotkit-0.1.17.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
37
+ multibotkit-0.1.17.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
38
+ multibotkit-0.1.17.dist-info/RECORD,,