mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 04:43:45 +03:00
Fix two more spelling mistakes
This commit is contained in:
parent
38e0888ea0
commit
773376ee21
|
@ -570,11 +570,13 @@ class TelegramClient(TelegramBareClient):
|
||||||
file,
|
file,
|
||||||
add_extension=False,
|
add_extension=False,
|
||||||
progress_callback=None):
|
progress_callback=None):
|
||||||
"""Downloads MessageMediaPhoto's largest size into the desired
|
"""Downloads MessageMediaPhoto's largest size into the desired file
|
||||||
file(a stream or str), optionally finding its extension automatically
|
(a stream or str), optionally finding its extension automatically.
|
||||||
The progress_callback should be a callback function which takes two parameters,
|
|
||||||
uploaded size (in bytes) and total file size (in bytes).
|
The progress_callback should be a callback function which takes
|
||||||
This will be called every time a part is downloaded"""
|
two parameters, uploaded size and total file size (both in bytes).
|
||||||
|
This will be called every time a part is downloaded
|
||||||
|
"""
|
||||||
|
|
||||||
# Determine the photo and its largest size
|
# Determine the photo and its largest size
|
||||||
photo = message_media_photo.photo
|
photo = message_media_photo.photo
|
||||||
|
@ -603,12 +605,15 @@ class TelegramClient(TelegramBareClient):
|
||||||
file=None,
|
file=None,
|
||||||
add_extension=True,
|
add_extension=True,
|
||||||
progress_callback=None):
|
progress_callback=None):
|
||||||
"""Downloads the given MessageMediaDocument into the desired
|
"""Downloads the given MessageMediaDocument into the desired file
|
||||||
file(a stream or str), optionally finding its extension automatically.
|
(a stream or str), optionally finding its extension automatically.
|
||||||
If no file_path is given, it will try to be guessed from the document
|
|
||||||
The progress_callback should be a callback function which takes two parameters,
|
If no file_path is given it will try to be guessed from the document.
|
||||||
uploaded size (in bytes) and total file size (in bytes).
|
|
||||||
This will be called every time a part is downloaded"""
|
The progress_callback should be a callback function which takes
|
||||||
|
two parameters, uploaded size and total file size (both in bytes).
|
||||||
|
This will be called every time a part is downloaded
|
||||||
|
"""
|
||||||
document = message_media_document.document
|
document = message_media_document.document
|
||||||
file_size = document.size
|
file_size = document.size
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user