mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-31 10:19:48 +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()
|
photo_type = file.photosize.thumbnail_type.encode()
|
||||||
# end if
|
# end if
|
||||||
|
|
||||||
foto_size = file.photosize
|
photo_size = file.photosize
|
||||||
if isinstance(foto_size, (PhotoFileId.PhotosizeSourceLegacy, PhotoFileId.PhotosizeSourceThumbnail, PhotoFileId.PhotosizeSourceDialogPhotoSmall, PhotoFileId.PhotosizeSourceDialogPhotoBig, PhotoFileId.PhotosizeSourceStickersetThumbnail)):
|
if isinstance(photo_size, (PhotoFileId.PhotosizeSourceLegacy, PhotoFileId.PhotosizeSourceThumbnail, PhotoFileId.PhotosizeSourceDialogPhotoSmall, PhotoFileId.PhotosizeSourceDialogPhotoBig, PhotoFileId.PhotosizeSourceStickersetThumbnail)):
|
||||||
sizes = [
|
sizes = [
|
||||||
types.PhotoSize(
|
types.PhotoSize(
|
||||||
type=photo_type,
|
type=photo_type,
|
||||||
location=types.FileLocationToBeDeprecated(
|
location=types.FileLocationToBeDeprecated(
|
||||||
volume_id=foto_size.volume_id,
|
volume_id=photo_size.volume_id,
|
||||||
local_id=foto_size.location_local_id,
|
local_id=photo_size.location_local_id,
|
||||||
),
|
),
|
||||||
w=0,
|
w=0,
|
||||||
h=0,
|
h=0,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user