Skip to content
Permalink
Browse files
Rename no_webpage to link_preview for clarity
  • Loading branch information
Lonami committed Jul 7, 2017
1 parent 95a989b commit 0119a006585acd1a1a9a8901a21bb2f193142cfe
Showing with 2 additions and 2 deletions.
  1. +2 −2 telethon/telegram_client.py
@@ -379,14 +379,14 @@ def get_dialogs(self,
def send_message(self,
entity,
message,
no_web_page=False):
link_preview=True):
"""Sends a message to the given entity (or input peer)
and returns the sent message ID"""
request = SendMessageRequest(
peer=get_input_peer(entity),
message=message,
entities=[],
no_webpage=no_web_page
no_webpage=not link_preview
)
result = self(request)
for handler in self._update_handlers:

0 comments on commit 0119a00

Please sign in to comment.