瀏覽代碼

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 3 年之前
父節點
當前提交
5fdd0530d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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}",
             },