From e5577ec887959f1e9654a0a1899237daf8887289 Mon Sep 17 00:00:00 2001 From: yamaks2306 Date: Fri, 22 Apr 2022 17:37:49 +0300 Subject: [PATCH] disable webpage preview --- send_message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/send_message.py b/send_message.py index a0c66f7..a639d88 100644 --- a/send_message.py +++ b/send_message.py @@ -65,7 +65,8 @@ def send_message(): parameters = { 'chat_id': chat_id, 'text': message, - 'parse_mode': 'HTML' + 'parse_mode': 'HTML', + 'disable_web_page_preview': True } request = requests.get(link, params = parameters)