mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Remove hidden entities parameter in send_file
This commit is contained in:
parent
3b44626a6a
commit
367a002d89
|
@ -725,7 +725,7 @@ class MessageMethods:
|
|||
silent=silent,
|
||||
reply_to=reply_to,
|
||||
buttons=markup,
|
||||
entities=message.entities,
|
||||
formatting_entities=message.entities,
|
||||
schedule=schedule
|
||||
)
|
||||
|
||||
|
|
|
@ -359,12 +359,8 @@ class UploadMethods:
|
|||
entity = await self.get_input_entity(entity)
|
||||
reply_to = utils.get_message_id(reply_to)
|
||||
|
||||
# Not document since it's subject to change.
|
||||
# Needed when a Message is passed to send_message and it has media.
|
||||
if formatting_entities is not None:
|
||||
msg_entities = formatting_entities
|
||||
elif 'entities' in kwargs:
|
||||
msg_entities = kwargs['entities']
|
||||
else:
|
||||
caption, msg_entities =\
|
||||
await self._parse_message_text(caption, parse_mode)
|
||||
|
|
Loading…
Reference in New Issue
Block a user