mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 16:07:44 +03:00 
			
		
		
		
	Cleanup converting to input media in send album
This commit is contained in:
		
							parent
							
								
									8e36c0002b
								
							
						
					
					
						commit
						5b098a909a
					
				|  | @ -302,9 +302,10 @@ class UploadMethods(ButtonMethods, MessageParseMethods, UserMethods): | |||
|                 r = await self(functions.messages.UploadMediaRequest( | ||||
|                     entity, media=fm | ||||
|                 )) | ||||
|                 fm = utils.get_input_photo(r.photo) | ||||
|                 self.session.cache_file(fh.md5, fh.size, fm) | ||||
|                 fm = types.InputMediaPhoto(fm) | ||||
|                 self.session.cache_file( | ||||
|                     fh.md5, fh.size, utils.get_input_photo(r.photo)) | ||||
| 
 | ||||
|                 fm = utils.get_input_media(r.photo) | ||||
| 
 | ||||
|             if captions: | ||||
|                 caption, msg_entities = captions.pop() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user