Rename entity parameter with something clearer

This commit is contained in:
Lonami Exo
2022-03-02 09:00:39 +01:00
parent 392808b950
commit c3cefef37c
8 changed files with 142 additions and 136 deletions

View File

@@ -79,7 +79,7 @@ def _resize_photo_if_needed(
async def send_file(
self: 'TelegramClient',
entity: 'hints.EntityLike',
dialog: 'hints.EntityLike',
file: typing.Optional[hints.FileLike] = None,
*,
# - Message contents
@@ -119,7 +119,7 @@ async def send_file(
comment_to: 'typing.Union[int, _tl.Message]' = None,
) -> '_tl.Message':
self.send_message(
entity=entity,
dialog=dialog,
message=caption,
markdown=markdown,
html=html,