Skip to content

Commit

Permalink
fix: telegram 发生 form 请求 url拼接错误BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Aug 29, 2024
1 parent 555248f commit 72c51d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint-plugin-format": "^0.1.2",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-node-externals": "^7.1.3",
"telegram-bot-api-types": "^7.9.10",
"telegram-bot-api-types": "^7.9.12",
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"vite": "^5.4.2",
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class APIClientBase {
formData.append(key, JSON.stringify(value));
}
}
return fetch(`${this.baseURL}bot${this.token}/${method}`, {
return fetch(`${this.baseURL}/bot${this.token}/${method}`, {
method: 'POST',
body: formData,
});
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4699,10 +4699,10 @@ tar@^6.0.2, tar@^6.1.11, tar@^6.1.2:
mkdirp "^1.0.3"
yallist "^4.0.0"

telegram-bot-api-types@^7.9.10:
version "7.9.10"
resolved "https://registry.yarnpkg.com/telegram-bot-api-types/-/telegram-bot-api-types-7.9.10.tgz#e519fa8ffec912cf0567025b83364d7905f74c2a"
integrity sha512-T8wwAxclKu5vT1HWKeHiLuotWN2WxBM3gM75zCUAZcEWMXuIuFBU15zq39jkgk6wz179UYKitvCMNsxgyfCE+w==
telegram-bot-api-types@^7.9.12:
version "7.9.12"
resolved "https://registry.yarnpkg.com/telegram-bot-api-types/-/telegram-bot-api-types-7.9.12.tgz#0631d9e87d5190c21283415150f7b5f16af33cec"
integrity sha512-RM69ix6NdgTIxPFjqI5qO5AEGsMsc623AvsJPWjYHMvcTV9Zvx3/VBYCyTpMoVUSYy8NmQ9zQx0xUJVGAe14Dg==

text-table@^0.2.0:
version "0.2.0"
Expand Down

0 comments on commit 72c51d2

Please sign in to comment.