diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 2e1200c6..544b7087 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -151,7 +151,7 @@ class UploadMethods: * An external URL to a file over the internet. This will send the file as "external" media, and Telegram is the one that will fetch the media and send it. -. + * A Bot API-like ``file_id``. You can convert previously sent media to file IDs for later reusing with `telethon.utils.pack_bot_file_id`. diff --git a/telethon/utils.py b/telethon/utils.py index 4c5c2e13..6045506e 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1549,7 +1549,7 @@ def _photo_size_byte_count(size): return len(size.bytes) elif isinstance(size, types.PhotoSizeEmpty): return 0 - elif isinstance(size, types.): + elif isinstance(size, types.PhotoSizeProgressive): return max(size.sizes) else: return None diff --git a/telethon_generator/data/friendly.csv b/telethon_generator/data/friendly.csv index 20909153..950a8bd7 100644 --- a/telethon_generator/data/friendly.csv +++ b/telethon_generator/data/friendly.csv @@ -11,8 +11,6 @@ chats.ChatMethods,edit_admin,channels.editAdmin messages.editChatAdmin chats.ChatMethods,edit_permissions,channels.editBanned messages.editChatDefaultBannedRights chats.ChatMethods,iter_participants,channels.getParticipants 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_drafts,messages.getAllDrafts dialogs.DialogMethods,edit_folder,folders.deleteFolder folders.editPeerFolders