Skip to content

Commit

Permalink
Fix Documentation Mistake
Browse files Browse the repository at this point in the history
and Bump Version
  • Loading branch information
SpEcHiDe committed Apr 19, 2024
1 parent 715b2c3 commit f3a36c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyrogram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

__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 <https://github.com/delivrance>"

Expand Down
2 changes: 1 addition & 1 deletion pyrogram/methods/messages/edit_inline_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand Down
2 changes: 1 addition & 1 deletion pyrogram/methods/messages/edit_message_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand Down
2 changes: 1 addition & 1 deletion pyrogram/methods/messages/send_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand Down

0 comments on commit f3a36c4

Please sign in to comment.