multibotkit 0.1.23__py3-none-any.whl → 0.1.24__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.
- multibotkit/helpers/telegram.py +4 -0
- {multibotkit-0.1.23.dist-info → multibotkit-0.1.24.dist-info}/METADATA +1 -1
- {multibotkit-0.1.23.dist-info → multibotkit-0.1.24.dist-info}/RECORD +6 -6
- {multibotkit-0.1.23.dist-info → multibotkit-0.1.24.dist-info}/LICENSE +0 -0
- {multibotkit-0.1.23.dist-info → multibotkit-0.1.24.dist-info}/WHEEL +0 -0
- {multibotkit-0.1.23.dist-info → multibotkit-0.1.24.dist-info}/top_level.txt +0 -0
multibotkit/helpers/telegram.py
CHANGED
|
@@ -235,6 +235,7 @@ class TelegramHelper(BaseHelper):
|
|
|
235
235
|
message_id: int,
|
|
236
236
|
text: str,
|
|
237
237
|
parse_mode: str = "HTML",
|
|
238
|
+
disable_web_page_preview: Optional[bool] = True,
|
|
238
239
|
reply_markup: Optional[InlineKeyboardMarkup] = None,
|
|
239
240
|
):
|
|
240
241
|
url = self.tg_base_url + "editMessageText"
|
|
@@ -243,6 +244,7 @@ class TelegramHelper(BaseHelper):
|
|
|
243
244
|
"message_id": message_id,
|
|
244
245
|
"text": text,
|
|
245
246
|
"parse_mode": parse_mode,
|
|
247
|
+
"link_preview_options": {"is_disabled": disable_web_page_preview}
|
|
246
248
|
}
|
|
247
249
|
if reply_markup:
|
|
248
250
|
data["reply_markup"] = reply_markup.dict(exclude_none=True)
|
|
@@ -256,6 +258,7 @@ class TelegramHelper(BaseHelper):
|
|
|
256
258
|
message_id: int,
|
|
257
259
|
text: str,
|
|
258
260
|
parse_mode: str = "HTML",
|
|
261
|
+
disable_web_page_preview: Optional[bool] = True,
|
|
259
262
|
reply_markup: Optional[InlineKeyboardMarkup] = None,
|
|
260
263
|
):
|
|
261
264
|
url = self.tg_base_url + "editMessageText"
|
|
@@ -264,6 +267,7 @@ class TelegramHelper(BaseHelper):
|
|
|
264
267
|
"message_id": message_id,
|
|
265
268
|
"text": text,
|
|
266
269
|
"parse_mode": parse_mode,
|
|
270
|
+
"link_preview_options": {"is_disabled": disable_web_page_preview}
|
|
267
271
|
}
|
|
268
272
|
if reply_markup:
|
|
269
273
|
data["reply_markup"] = reply_markup.dict(exclude_none=True)
|
|
@@ -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=
|
|
11
|
+
multibotkit/helpers/telegram.py,sha256=RXKYTia-MS1v5blUM29vVuogcRrWLv7x8kHxBWZXrTg,54751
|
|
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.
|
|
35
|
-
multibotkit-0.1.
|
|
36
|
-
multibotkit-0.1.
|
|
37
|
-
multibotkit-0.1.
|
|
38
|
-
multibotkit-0.1.
|
|
34
|
+
multibotkit-0.1.24.dist-info/LICENSE,sha256=3iCLdX93Z5F6PpDqN6q7wufsBixXuTAYwgzntBQjYBQ,1069
|
|
35
|
+
multibotkit-0.1.24.dist-info/METADATA,sha256=bCla6-AVq-Swo9yFRNoekTtatPas7t1TYveQOrhy27k,826
|
|
36
|
+
multibotkit-0.1.24.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
|
37
|
+
multibotkit-0.1.24.dist-info/top_level.txt,sha256=Meo5tTNdc5pf6_qwW6x4Cqz5iJJlXFqUDMti96pzV2I,12
|
|
38
|
+
multibotkit-0.1.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|