songquanpeng / message-pusher Goto Github PK
View Code? Open in Web Editor NEW搭建专属于你的消息推送服务,支持多种消息推送方式,支持 Markdown,基于 Golang 仅单可执行文件,开箱即用
Home Page: https://msgpusher.com
License: MIT License
搭建专属于你的消息推送服务,支持多种消息推送方式,支持 Markdown,基于 Golang 仅单可执行文件,开箱即用
Home Page: https://msgpusher.com
License: MIT License
尤其是heroku,我看到前缀和openid是写死的,不会是开多个APP吧?
再就是我想单独针对关注了测试公众号的用户进行特定用户发送特定消息,这个得增加用户管理功能吧?
admin登录后修改密码等配置操作点击提交没反应无法保存到data.db里去
使用\n不能换行,如果强行换行,第2行的信息就不能发出去了。
是不是服务号通道和测试号通道可能因微信下线模板消息而不可用
https://developers.weixin.qq.com/community/develop/doc/000a4e1df800d82acb9b7fb5e5b001
届时还能用吗?
宝塔面板搭建教程吗?
这样可以增加应用的使用场景,例如生日提醒、工资提醒等等。
有个功能上的建议:
消息部分,能否加消息的富文本编辑和自主选择配置的渠道发送消息
正常使用一段时间后就会无法推送错误信息如下
data: {
message: 'invalid credential, access_token is invalid or not latest, could get access_token by getStableAccessToken, more details at https://mmbizurl.cn/s/JtxxFh33r rid: 642bce46-663ec3de-44b496d3',
success: false
}
容器是按照文档的命令启动
docker run -d --restart always --name message-pusher -p 3000:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/message-pusher:/data justsong/message-pusher
然后过段时间又可以推送了
不管是根据readme.md的示例Python代码,还是使用工具发出的post请求,收到服务器的回复都是
{"message":"无法解析请求体,请检查其是否为合法 JSON","success":false}
Python代码的 json 请求体仔细过没有任何问题,包括将json复制到json.cn上检测。
为了验证不是我部署的服务的问题,特地使用开发者提供的实例上进行验证,得到的结果一样。
完整代码如下:
import requests
# GET 方式
# res = requests.get("https://your.domain.com/push/username?title={}&description={}&token={}".format("标题", "描述", "666"))
# POST 方式
res = requests.post("https://msgpusher.com/push/chen", data={
"title": "标题",
"description": "描述",
"content": "**Markdown 内容**",
"token": "zzss"
})
print(res.text)
# 输出为:{"success":true,"message":"ok"}
GET请求没有任何问题,无法处理post请求。
您好,能否新增一个arm版本的二进制和docker镜像
企业微信应用消息推送,不带图标呢,而且还自带链接,点一下就空白
注意到演示站是用的heroku,所以有了亿点点想法
结果访问https://wechat-push1.herokuapp.com/admin/Hi 提示
{
success: false,
message: "不支持的消息类型:cor"
}
望大佬指教
建议:每个分组可选择或指定对应的推送规则。推送URL增加group字段,然后消息根据指定的推送规则分发。
企业微信应用消息配置正常,无法测试发送消息,报错:错误:access_token missing, hint: [1670371158347280850760093], from ip: x.xx.xxx.xx, more info at https://open.work.weixin.qq.com/devtool/query?e=41001
,测试使用相同的配置其他开源项目可以正常发送通知
完整信息:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=": x509: certificate signed by unknown authority
尝试搜索问题,似乎是docker alpine 镜像没有内置 HTTPS 证书,所以需要在打包时安装下证书。参考链接:https://blog.csdn.net/wohu1104/article/details/120003857
提示
failed to refresh access token: Get "https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ww2a8xxxxxxxx378&corpsecret=JyU4HIdpqxxxxxxxxxxxxxdB4_u2sZxxxxxxxxxxx": dial tcp: lookup qyapi.weixin.qq.com: device or resource busy
已加入可信ip和域名,使用腾讯云服务器,同服务器使用其他推送没有问题,推送成功,使用本docker版v0.3.0提示以上错误,重启也不行
后续有计划实现异步推送吗 接口提交推送任务 后台处理并推送 并提供接口查看推送结果
本人小白,就想问下换行问题.
描述的换行找不到方法.
markdown文本的换行我使用在文本最后添加"<br />"没有效果.
我的使用场景是有多个钉钉群机器人,不同的事件需要调用不同的机器人。
现在单用户只能填写一个钉钉群机器人,所以我只能通过多个用户去实现这个需求。如果单用户支持多个钉钉群机器人,就会更加方便一点。
message-pusher/controller/message.go
Line 125 in e178d5a
很多消息渠道支持URL落地页,能否支持自定义消息URL,不走默认的消息页面
我看了企业微信的应用的消息推送api,https://work.weixin.qq.com/api/doc/90000/90135/90235
该api是可以直接通过企业微信后台发送请求,进而通过企业微信应用给微信号推送消息的。所以这个项目是把该api包了一层,变成向自己的服务器发送请求,接着自己的服务器向企业微信后台发送请求,是这样吗?
请求增加飞书自建应用,比飞书群机器人好用
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
我绑定了QQ邮箱 现在只能发给自己
看了一下 好像没有设置收件人的地方
企业微信尝试发送test的时候返回,more info at https://open.work.weixin.qq.com/devtool/query?e=60020
需要配置可信任IP,又要求先完成配置可信任域名。
配置可信域名需完成域名归属认证
1. Download "WW_verify_*****.txt
2.将此文件放到www根目录
卡在了第二步,docker exec 进入后,直接放到根目录不对,想问下这个www根目录的docker路径是?
如题
用起来不错,感谢一下
请问这2个参数是从哪里获取啊
session_secret: 'change this',
cookie_secret: 'change this',
还是随便自己填写
宝塔安装,后台设置成功。运行测试出错:http//www.xxxx.com:3000/admin/hi
未设置token,出现:
{"success":false,"message":"access_token missing, hint: [1629155382_210_3befab32bc7561313a552e71de432623], from ip: 1xx.1xx.1xx.2, more info at https://open.work.weixin.qq.com/devtool/query?e=41001"}
如果设置了token,运行
http//www.xxxx.com:3000/admin/hi&token=xxxxxxxxxxxx
,则出现:
{"success":false,"message":"无效的 access token"}
无论设置token与否都出错。请问是什么原因?
vim, certbot 没有安装
/etc/nginx/sites-enabled/message-pusher.conf 这个路径没有
跑不起来呀
毕竟国内使用应该会流畅一些吧.
根据教程里说明
“发送纯文本消息:直接 HTTP GET 请求 https://你的域名/你的前缀/消息,缺点是有字数限制,且只能是纯文本,这是微信消息的限制。”
经测试该方法发出去的消息依旧是markdown消息,不是传统文本消息
data.db 无法放,造成无法登陆
作者这个有开发者的交流群嘛???
是否可以增加一个功能:任何通过本项目接口发出的通知可以在Web端翻阅查看,可以由超级管理员选择是否开启。应用场景为将本项目自身打造成一个可以接收推送的接口。我想这个功能实现起来最麻烦的地方是通知太多了sqlite是否能满足性能要求,其他的应该不算难。
您好,我在使用国际版飞书,不知道本程序是否支持?
访问https://你的域名/前缀/Hi 请问这个前缀是什么意思啊
企业微信应用号发送的消息,详情无法打开。
详情中链接来源为:http://localhost:3000/,广域网无法打开
能否支持微信公众号或小程序
公众号设置
类型: 服务号 类型不可变更
0.0
安装使用方法 - Python 示例, Get方式和Pose方式,在使用微信测试公告号推送时候,能收到推送消息,但是只能显示description内容,无法点击,无法显示详情和content内容。
测试的版本:
1.docker amd64:V3.0 V3.1 V3.2
2.docker arm64 V3.1
以上均出现这个现象;
使用node.js版本的 docker v0.2.3 能正常显示详情和content内容
测试URL:
https://xxx/push/name?title={122}&description={122}&content=**{123}**&token=xxx
测试Pose:
res = requests.post("http://IP/push/name", json={
"title": title,
"description" : description,
"content": content,
"token": "xxx"
})
按照文档配置好所有的内容,去验证是否可以收到 Hi 信息时,返回 无效的 access token。
1、自己的服务器
2、已开启 https,其实 http 也是一样的错误
3、修改代码,输出具体的错误,common/message.js 里 message.token 输出是 undefined。
4、无论是测试号还是企业号均是该错误
5、访问服务器的 verify 地址,输出 verification failed。修改代码打印详细错误,发现是 const { signature, timestamp, nonce, echostr } = req.query; 里 signature 输出是 undefined
6、文档里说是要在微信测试号里输入信息后,点击验证按钮,但是实际上我发现这块并不是显示验证按钮,而是提交按钮
求大佬帮忙分析下是怎么回事
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.