r0 -> v3
All checks were successful
Build and Publish / build_and_publish (push) Successful in 2m33s

This commit is contained in:
Nexus 2024-08-07 22:02:46 +01:00
parent 7b77d87d72
commit 11158fc92a

View file

@ -201,7 +201,7 @@ def upload_media(
# noinspection PyTypeChecker
response = client.post(
"%s/_matrix/media/r0/upload" % domain,
"%s/_matrix/media/v3/upload" % domain,
headers={
"Authorization": f"Bearer {access_token}",
"Content-Type": content_type
@ -272,7 +272,7 @@ def preview_url(
try:
response = httpx.get(
domain + "/_matrix/client/r0/account/whoami",
domain + "/_matrix/client/v3/account/whoami",
headers={"Authorization": f"Bearer {access_token}"}
)
except httpx.ConnectError as e: