r0 -> v3
All checks were successful
Build and Publish / build_and_publish (push) Successful in 2m33s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 2m33s
This commit is contained in:
parent
7b77d87d72
commit
11158fc92a
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue