aboutsummaryrefslogtreecommitdiffstats
path: root/sticker/lib/matrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'sticker/lib/matrix.py')
-rw-r--r--sticker/lib/matrix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sticker/lib/matrix.py b/sticker/lib/matrix.py
index f44ff7c..2216b04 100644
--- a/sticker/lib/matrix.py
+++ b/sticker/lib/matrix.py
@@ -59,7 +59,7 @@ async def load_config(path: str) -> None:
print("Matrix config file not found. Please enter your homeserver and access token.")
homeserver_url = input("Homeserver URL: ")
access_token = input("Access token: ")
- whoami_url = URL(homeserver_url) / "_matrix" / "client" / "r0" / "account" / "whoami"
+ whoami_url = URL(homeserver_url) / "_matrix" / "client" / "v3" / "account" / "whoami"
if whoami_url.scheme not in ("https", "http"):
whoami_url = whoami_url.with_scheme("https")
user_id = await whoami(whoami_url, access_token)
@@ -71,7 +71,7 @@ async def load_config(path: str) -> None:
}, config_file)
print(f"Wrote config to {path}")
- upload_url = URL(homeserver_url) / "_matrix" / "media" / "r0" / "upload"
+ upload_url = URL(homeserver_url) / "_matrix" / "media" / "v3" / "upload"
async def whoami(url: URL, access_token: str) -> str:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage