mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 16:10:51 +03:00
Rename no_webpage to link_preview for clarity
This commit is contained in:
parent
95a989be2c
commit
0119a00658
|
@ -379,14 +379,14 @@ class TelegramClient(TelegramBareClient):
|
||||||
def send_message(self,
|
def send_message(self,
|
||||||
entity,
|
entity,
|
||||||
message,
|
message,
|
||||||
no_web_page=False):
|
link_preview=True):
|
||||||
"""Sends a message to the given entity (or input peer)
|
"""Sends a message to the given entity (or input peer)
|
||||||
and returns the sent message ID"""
|
and returns the sent message ID"""
|
||||||
request = SendMessageRequest(
|
request = SendMessageRequest(
|
||||||
peer=get_input_peer(entity),
|
peer=get_input_peer(entity),
|
||||||
message=message,
|
message=message,
|
||||||
entities=[],
|
entities=[],
|
||||||
no_webpage=no_web_page
|
no_webpage=not link_preview
|
||||||
)
|
)
|
||||||
result = self(request)
|
result = self(request)
|
||||||
for handler in self._update_handlers:
|
for handler in self._update_handlers:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user