GithubHelp home page GithubHelp logo

lenye / pmsg Goto Github PK

View Code? Open in Web Editor NEW
44.0 4.0 13.0 457 KB

发送消息的小工具:企业微信群机器人消息,钉钉自定义机器人消息,飞书自定义机器人消息,Slack bot,微信消息,微信客服消息,企业微信消息,企业微信客服消息

Home Page: https://lenye.github.io/pmsg/

License: Apache License 2.0

Go 99.97% Dockerfile 0.03%
wechat weixin dingtalk feishu slack dingding dingding-bot dingding-robot dingtalk-bot dingtalk-robot feishu-bot feishu-robot workwechat workweixin workwechat-bot workwechat-robot

pmsg's Introduction

pmsg是一个发送消息的小工具。

支持的消息

WebHook

  • 企业微信群机器人消息
  • 钉钉自定义机器人消息
  • 飞书自定义机器人消息
  • Slack机器人消息

微信

  • 微信公众号

    • 模板消息
    • 一次性订阅消息
    • 订阅通知
    • 客服消息
  • 微信小程序

    • 订阅消息
    • 客服消息

企业微信

  • 应用消息
  • 群聊消息
  • 家校消息
  • 互联企业消息
  • 客服消息

支持的操作系统

  • Windows
  • Linux
  • macOS
  • FreeBSD
  • OpenBSD

文档

https://github.com/lenye/pmsg/tree/main/docs

下载

使用二进制发行版

  1. 下载 pmsg 最新版本

  2. 开始运行它:

    linux

    $ ./pmsg --help
    
    Usage:
      pmsg [command]
    
    Available Commands:
      dingtalk    ding talk
      feishu      fei shu
      help        Help about any command
      slack       slack   
      weixin      weixin
      workweixin  work weixin
    
    Flags:
      -h, --help      help for pmsg
      -v, --version   version for pmsg
    
    Use "pmsg [command] --help" for more information about a command.

linux容器映像

  1. Packages https://github.com/lenye/pmsg/pkgs/container/pmsg

  2. 拉取容器映像

    $ docker pull ghcr.io/lenye/pmsg
  3. 开始运行它

    $ docker run --rm ghcr.io/lenye/pmsg --help

源代码

$ git clone https://github.com/lenye/pmsg.git

License

pmsg is released under the Apache 2.0 license.

pmsg's People

Contributors

lenye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pmsg's Issues

Base64 encoder 未 Close 导致的企业微信机器人图片发送失败

企业微信机器人,使用 ImageFile2Meta 生成的结构体发送图片失败,错误信息

weixin request error; errcode: 301019, errmsg: "media md5 not match, more info at https://open.work.weixin.qq.com/devtool/query?e=301019"

测试图片:https://user-images.githubusercontent.com/26185872/211131620-4e31726f-4767-403e-b17a-263ebc7a25a1.png

实际原因是 baser64 encoder 没有 Close 导致最后几个字节没有被编码。

参考官方 example:https://github.com/golang/go/blob/master/src/encoding/base64/example_test.go#L77

修复建议:https://github.com/lenye/pmsg/blob/main/pkg/weixin/work/bot/meta.go#L75 增加调用 Close()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.