Skip to content

plutotree/wecom_bot_msg_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wecom_bot_msg is a simple wrapper for WeCom (Worker Wechat ) group bot API, to send text, image, audio, files etc in groups, check official docs for more information.

wecom_bot_msg 是给企业微信群机器人 API 的封装,用作发送文本、图片、语音、文件等各类消息,更多信息可以查看官方文档

Installation

Install wecom_bot_msg using pip

pip install wecom_bot_msg

Usage

Simple usage to send text or image

from wecom_bot_msg import WecomBot

bot = WecomBot(api_key='YOUR_API_KEY')

# send text
success, err_msg = bot.send_text('hello')

# send image
success, err_msg = bot.send_image('/LOCAL/PATH/IMAGE')

More examples

# sent text with mentioned list (or mentioned_mobile_list)
bot.send_text('hello', mentioned_list=['kim','kttiy'])
bot.send_text('hello', mentioned_mobile_list=['18688888888','15688888888'])

TODO

  • send text
  • send image
  • send markdown
  • upload file
  • send audio
  • send news
  • send template card

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages