创建 Telegram 绑定流程
curl --request POST \
--url https://api.lmm.best/api/oauth/telegram/bind/start \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lmm.best/api/oauth/telegram/bind/start"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lmm.best/api/oauth/telegram/bind/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/oauth/telegram/bind/start"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}OAuth
创建 Telegram 绑定流程
🔐 需要面板 Access Token;返回绑定 widget 使用的一次性 flow_token 与 callback_url
POST
/
api
/
oauth
/
telegram
/
bind
/
start
创建 Telegram 绑定流程
curl --request POST \
--url https://api.lmm.best/api/oauth/telegram/bind/start \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lmm.best/api/oauth/telegram/bind/start"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lmm.best/api/oauth/telegram/bind/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/oauth/telegram/bind/start"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}授权
面板短期 JWT 或 User.AccessToken PAT;不再要求 New-Api-User
响应
200
成功
最后修改于 2026年9月23日
⌘I