From f3a36c4e6dc7aff4167e32692ecb4a52fc230c54 Mon Sep 17 00:00:00 2001 From: shriMADhav U k Date: Fri, 19 Apr 2024 19:37:29 +0200 Subject: [PATCH] Fix Documentation Mistake and Bump Version --- pyrogram/__init__.py | 2 +- pyrogram/methods/messages/edit_inline_text.py | 2 +- pyrogram/methods/messages/edit_message_text.py | 2 +- pyrogram/methods/messages/send_message.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index fde428037..2097aa264 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . -__version__ = "2.1.19" +__version__ = "2.1.20" __license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)" __copyright__ = "Copyright (C) 2017-present Dan " diff --git a/pyrogram/methods/messages/edit_inline_text.py b/pyrogram/methods/messages/edit_inline_text.py index f78d791f9..2ee28e6e4 100644 --- a/pyrogram/methods/messages/edit_inline_text.py +++ b/pyrogram/methods/messages/edit_inline_text.py @@ -73,7 +73,7 @@ async def edit_inline_text( # Take the same text message, remove the web page preview only await app.edit_inline_text( inline_message_id, message.text, - link_preview_options=types.LinkPreviewOption( + link_preview_options=types.LinkPreviewOptions( is_disabled=True ) ) diff --git a/pyrogram/methods/messages/edit_message_text.py b/pyrogram/methods/messages/edit_message_text.py index 3cb8835be..1d7ecad29 100644 --- a/pyrogram/methods/messages/edit_message_text.py +++ b/pyrogram/methods/messages/edit_message_text.py @@ -79,7 +79,7 @@ async def edit_message_text( # Take the same text message, remove the web page preview only await app.edit_message_text( chat_id, message_id, message.text, - link_preview_options=types.LinkPreviewOption( + link_preview_options=types.LinkPreviewOptions( is_disabled=True ) ) diff --git a/pyrogram/methods/messages/send_message.py b/pyrogram/methods/messages/send_message.py index 0b653cdaf..7b29dc563 100644 --- a/pyrogram/methods/messages/send_message.py +++ b/pyrogram/methods/messages/send_message.py @@ -103,7 +103,7 @@ async def send_message( # Disable web page previews await app.send_message( chat_id="me", text="https://docs.pyrogram.org", - link_preview_options=types.LinkPreviewOption( + link_preview_options=types.LinkPreviewOptions( is_disabled=True ) )