File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mautrix/client/api/modules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ async def download_thumbnail(
199199 width : int | None = None ,
200200 height : int | None = None ,
201201 resize_method : Literal ["crop" , "scale" ] = None ,
202- allow_remote : bool = True ,
202+ allow_remote : bool | None = None ,
203203 timeout_ms : int | None = None ,
204204 ):
205205 """
@@ -232,7 +232,7 @@ async def download_thumbnail(
232232 if resize_method is not None :
233233 query_params ["method" ] = resize_method
234234 if allow_remote is not None :
235- query_params ["allow_remote" ] = allow_remote
235+ query_params ["allow_remote" ] = str ( allow_remote ). lower ()
236236 if timeout_ms is not None :
237237 query_params ["timeout_ms" ] = timeout_ms
238238 req_id = self .api .log_download_request (url , query_params )
You can’t perform that action at this time.
0 commit comments