multibotkit 0.1.16__tar.gz → 0.1.17__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.
- {multibotkit-0.1.16 → multibotkit-0.1.17}/PKG-INFO +1 -1
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/helpers/telegram.py +18 -2
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit.egg-info/PKG-INFO +1 -1
- {multibotkit-0.1.16 → multibotkit-0.1.17}/setup.py +1 -1
- {multibotkit-0.1.16 → multibotkit-0.1.17}/LICENSE +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/README.md +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/dispatchers/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/dispatchers/base_dispatcher.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/dispatchers/fb.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/dispatchers/telegram.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/dispatchers/viber.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/dispatchers/vk.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/helpers/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/helpers/base_helper.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/helpers/fb.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/helpers/viber.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/helpers/vk.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/fb/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/fb/incoming.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/fb/outgoing.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/telegram/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/telegram/incoming.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/telegram/outgoing.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/viber/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/viber/incoming.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/viber/outgoing.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/vk/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/vk/incoming.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/schemas/vk/outgoing.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/managers/__init__.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/managers/base.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/managers/memory.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/managers/mongo.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/managers/redis.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit/states/state.py +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit.egg-info/SOURCES.txt +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit.egg-info/dependency_links.txt +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit.egg-info/requires.txt +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/multibotkit.egg-info/top_level.txt +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/pyproject.toml +0 -0
- {multibotkit-0.1.16 → multibotkit-0.1.17}/setup.cfg +0 -0
|
@@ -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(
|
|
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(
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|