Skip to content

Commit 0119a00

Browse files
committed
Rename no_webpage to link_preview for clarity
1 parent 95a989b commit 0119a00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telethon/telegram_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,14 @@ def get_dialogs(self,
379379
def send_message(self,
380380
entity,
381381
message,
382-
no_web_page=False):
382+
link_preview=True):
383383
"""Sends a message to the given entity (or input peer)
384384
and returns the sent message ID"""
385385
request = SendMessageRequest(
386386
peer=get_input_peer(entity),
387387
message=message,
388388
entities=[],
389-
no_webpage=no_web_page
389+
no_webpage=not link_preview
390390
)
391391
result = self(request)
392392
for handler in self._update_handlers:

0 commit comments

Comments
 (0)