mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Rename foto_size
to photo_size
.
This commit is contained in:
parent
bb9d1f895f
commit
9463d5553d
|
@ -1162,14 +1162,14 @@ def resolve_bot_file_id(file_id):
|
|||
photo_type = file.photosize.thumbnail_type.encode()
|
||||
# end if
|
||||
|
||||
foto_size = file.photosize
|
||||
if isinstance(foto_size, (PhotoFileId.PhotosizeSourceLegacy, PhotoFileId.PhotosizeSourceThumbnail, PhotoFileId.PhotosizeSourceDialogPhotoSmall, PhotoFileId.PhotosizeSourceDialogPhotoBig, PhotoFileId.PhotosizeSourceStickersetThumbnail)):
|
||||
photo_size = file.photosize
|
||||
if isinstance(photo_size, (PhotoFileId.PhotosizeSourceLegacy, PhotoFileId.PhotosizeSourceThumbnail, PhotoFileId.PhotosizeSourceDialogPhotoSmall, PhotoFileId.PhotosizeSourceDialogPhotoBig, PhotoFileId.PhotosizeSourceStickersetThumbnail)):
|
||||
sizes = [
|
||||
types.PhotoSize(
|
||||
type=photo_type,
|
||||
location=types.FileLocationToBeDeprecated(
|
||||
volume_id=foto_size.volume_id,
|
||||
local_id=foto_size.location_local_id,
|
||||
volume_id=photo_size.volume_id,
|
||||
local_id=photo_size.location_local_id,
|
||||
),
|
||||
w=0,
|
||||
h=0,
|
||||
|
|
Loading…
Reference in New Issue
Block a user