Explorar o código

Imgurs docs are just wrong in one part apparently but now I'm rate limited anyway so this is a shot in the dark

Kirk Trombley %!s(int64=3) %!d(string=hai) anos
pai
achega
5fdd0530d5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/groupme_driver.py

+ 1 - 1
drivers/groupme_driver.py

@@ -116,7 +116,7 @@ class GroupMeBot(rollbot.Rollbot[GroupMeMessage]):
 
     async def upload_image_imgur(self, data: bytes) -> str:
         async with self.context.request.post(
-            "https://api.imgur.com/3/image",
+            "https://api.imgur.com/3/upload",
             headers={
                 "Authorization": f"Client-ID {imgur_token}",
             },