@@ -4036,6 +4036,7 @@ async def files_upload_v2(
40364036 content : Optional [Union [str , bytes ]] = None ,
40374037 title : Optional [str ] = None ,
40384038 alt_txt : Optional [str ] = None ,
4039+ highlight_type : Optional [str ] = None ,
40394040 snippet_type : Optional [str ] = None ,
40404041 # To upload multiple files at a time
40414042 file_uploads : Optional [List [Dict [str , Any ]]] = None ,
@@ -4080,6 +4081,7 @@ async def files_upload_v2(
40804081 "content" : content ,
40814082 "title" : title ,
40824083 "alt_txt" : alt_txt ,
4084+ "highlight_type" : highlight_type ,
40834085 "snippet_type" : snippet_type ,
40844086 }
40854087 )
@@ -4118,7 +4120,7 @@ async def files_upload_v2(
41184120
41194121 # step3: files.completeUploadExternal with all the sets of (file_id + title)
41204122 completion = await self .files_completeUploadExternal (
4121- files = [{"id" : f ["file_id" ], "title" : f ["title" ]} for f in files ],
4123+ files = [{"id" : f ["file_id" ], "title" : f ["title" ], "highlight_type" : f . get ( "highlight_type" ) } for f in files ],
41224124 channel_id = channel ,
41234125 channels = channels ,
41244126 initial_comment = initial_comment ,
@@ -4154,7 +4156,7 @@ async def files_getUploadURLExternal(
41544156 async def files_completeUploadExternal (
41554157 self ,
41564158 * ,
4157- files : List [Dict [str , str ]],
4159+ files : List [Dict [str , Optional [ str ] ]],
41584160 channel_id : Optional [str ] = None ,
41594161 channels : Optional [List [str ]] = None ,
41604162 initial_comment : Optional [str ] = None ,
0 commit comments