This commit is contained in:
New-dev0 2021-06-13 13:47:28 +05:30
parent fb1d19a1eb
commit 592b179768
3 changed files with 2 additions and 4 deletions

View File

@ -151,7 +151,7 @@ class UploadMethods:
* An external URL to a file over the internet. This will * An external URL to a file over the internet. This will
send the file as "external" media, and Telegram is the send the file as "external" media, and Telegram is the
one that will fetch the media and send it. one that will fetch the media and send it.
.
* A Bot API-like ``file_id``. You can convert previously * A Bot API-like ``file_id``. You can convert previously
sent media to file IDs for later reusing with sent media to file IDs for later reusing with
`telethon.utils.pack_bot_file_id`. `telethon.utils.pack_bot_file_id`.

View File

@ -1549,7 +1549,7 @@ def _photo_size_byte_count(size):
return len(size.bytes) return len(size.bytes)
elif isinstance(size, types.PhotoSizeEmpty): elif isinstance(size, types.PhotoSizeEmpty):
return 0 return 0
elif isinstance(size, types.): elif isinstance(size, types.PhotoSizeProgressive):
return max(size.sizes) return max(size.sizes)
else: else:
return None return None

View File

@ -11,8 +11,6 @@ chats.ChatMethods,edit_admin,channels.editAdmin messages.editChatAdmin
chats.ChatMethods,edit_permissions,channels.editBanned messages.editChatDefaultBannedRights chats.ChatMethods,edit_permissions,channels.editBanned messages.editChatDefaultBannedRights
chats.ChatMethods,iter_participants,channels.getParticipants chats.ChatMethods,iter_participants,channels.getParticipants
chats.ChatMethods,iter_admin_log,channels.getAdminLog chats.ChatMethods,iter_admin_log,channels.getAdminLog
chats.ChatMethods,get_participant, channels.getParticipant
chats.ChatMethods,modify_groupcall, phone.createGroupCall phone.discardGroupCall phone.toggleGroupCallSettings phone.startScheduledGroupCall phone.editGroupCallTitle
dialogs.DialogMethods,iter_dialogs,messages.getDialogs dialogs.DialogMethods,iter_dialogs,messages.getDialogs
dialogs.DialogMethods,iter_drafts,messages.getAllDrafts dialogs.DialogMethods,iter_drafts,messages.getAllDrafts
dialogs.DialogMethods,edit_folder,folders.deleteFolder folders.editPeerFolders dialogs.DialogMethods,edit_folder,folders.deleteFolder folders.editPeerFolders

1 ns friendly raw
11 chats.ChatMethods edit_permissions channels.editBanned messages.editChatDefaultBannedRights
12 chats.ChatMethods iter_participants channels.getParticipants
13 chats.ChatMethods iter_admin_log channels.getAdminLog
chats.ChatMethods get_participant channels.getParticipant
chats.ChatMethods modify_groupcall phone.createGroupCall phone.discardGroupCall phone.toggleGroupCallSettings phone.startScheduledGroupCall phone.editGroupCallTitle
14 dialogs.DialogMethods iter_dialogs messages.getDialogs
15 dialogs.DialogMethods iter_drafts messages.getAllDrafts
16 dialogs.DialogMethods edit_folder folders.deleteFolder folders.editPeerFolders