We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e22e61 commit 9b4198aCopy full SHA for 9b4198a
1 file changed
mautrix/client/api/modules/media_repository.py
@@ -199,7 +199,7 @@ async def download_thumbnail(
199
width: int | None = None,
200
height: int | None = None,
201
resize_method: Literal["crop", "scale"] = None,
202
- allow_remote: bool = True,
+ allow_remote: bool | None = None,
203
timeout_ms: int | None = None,
204
):
205
"""
@@ -232,7 +232,7 @@ async def download_thumbnail(
232
if resize_method is not None:
233
query_params["method"] = resize_method
234
if allow_remote is not None:
235
- query_params["allow_remote"] = allow_remote
+ query_params["allow_remote"] = str(allow_remote).lower()
236
if timeout_ms is not None:
237
query_params["timeout_ms"] = timeout_ms
238
req_id = self.api.log_download_request(url, query_params)
0 commit comments