-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于是否会出一个傻瓜式部署教程 #11
Comments
具体是哪一步出问题了 |
1 我将项目git clone 到本地,然后根据chatgpt的提示 进行了wrangler dev 2 然后有提示warn 其实三个依赖需要更新替换 (tg以及ai相关)同样的根据gpt 排除了这个故障(更新了新的依赖) 3 我从本地将这个推倒了cf上,绑定好了d1 通过那个排除故障的网页可以发现 有请求记录(页面返回一个ok) 4 我没有编辑wrangler.toml,变量是在cf的works里面绑定的 gemini 和 tg 的api 以及token(GEMINI_API_KEY SECRET_TELEGRAM_API_TOKEN) 5 我尝试在机器人上面发指令 虽然是已读 但是没有响应(cf上日志也没有) 我猜测是 我虽然推上来了 但是这个也完全没有work 因为没有任何开发经验 所以在排查的时候也束手无策,所以来问问作者你会考虑出一个傻瓜教程不 嘿嘿 |
webhook 设置了吗. curl "https://api.telegram.org/bot<你的bot token>/setWebhook" --data-urlencode "url=<你的 cf woker>.workers.dev" |
我刚按照这个指令 再绑了一次"ok":true,"result":true,"description":"Webhook is already set" 但是机器人没有反应 我觉得我需要从来来一遍哈哈哈 |
emmm, 这时给机器人发对话, 后台会有 log 出来. 以及群 privacy 模式记得关掉. |
yesir! 我看到请求日志了 (但是给机器人 发/start /summary /status 还是已读未回 这些指令的回复是不是还需要配置? 以及 现在这个状态 机器人就可以正常总结群内的消息了吗 |
自己拉一个测试群, 然后 bot 的 privacy 模式记得关掉, 就可以测试了. |
如果还是试不出来, 同 worker 先换成 grammY , 大概能保证 webhook 正常, 然后调试好了换回这个() |
作者你好,会考虑出一个傻瓜式部署教程吗
我对这chatGpt尝试部署了一次,项目导cfwork之后,只给我返回一个ok,但是没有相关知识背景,排查起来有些困难
tg token Gemini API d1 等部署条件已经备好了
The text was updated successfully, but these errors were encountered: