mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +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,
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user