mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-29 06:57:50 +03:00 
			
		
		
		
	Fix send_file completely ignoring input parameters
This commit is contained in:
		
							parent
							
								
									2bd0c6c525
								
							
						
					
					
						commit
						09ea8ffe0b
					
				|  | @ -152,7 +152,11 @@ class UploadMethods(MessageParseMethods, UserMethods): | |||
|                 await self._parse_message_text(caption, parse_mode) | ||||
| 
 | ||||
|         file_handle, media = await self._file_to_media( | ||||
|             file, allow_cache=allow_cache) | ||||
|             file, force_document=force_document, | ||||
|             progress_callback=progress_callback, | ||||
|             attributes=attributes,  allow_cache=allow_cache, thumb=thumb, | ||||
|             voice_note=voice_note, video_note=video_note | ||||
|         ) | ||||
| 
 | ||||
|         request = functions.messages.SendMediaRequest( | ||||
|             entity, media, reply_to_msg_id=reply_to, message=caption, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user