Skip to main content

Wecom(A.K.A. WeChat Work) Group Bot python API.

Project description

pywgb

Wecom(A.K.A. WeChat Work) Group Bot python API.

Homepage

ChowRex/pywgb: Wecom(A.K.A Wechat Work) Group Bot python API.

How to use

  1. Create a Wecom Group Bot.

  2. Copy the webhook URL or just the key. It should be like:

  3. Install this package: pip install pywgb

  4. Refer code below:

    from pywgb import TextWeComGroupBot, MarkdownWeComGroupBot, ImageWeComGroupBot
    
    KEY = "PASTE_YOUR_KEY_OR_WEBHOOKURL_HERE"
    
    # If you want to send Text message, use this.
    msg = "This is a test Text message."
    bot = TextWeComGroupBot(KEY)
    bot.send(msg)
    
    # If you want to send Markdown message, use this.
    msg = "# This is a test Markdown title message."
    bot = MarkdownWeComGroupBot(KEY)
    bot.send(msg)
    
    # If you want to send Image message, use this.
    file = "Path/To/Your/Image.png" or "Path/To/Your/Image.jpg"
    bot = ImageWeComGroupBot(KEY)
    bot.send(file_path=file)
    

Official Docs

Only Chinese version doc: 群机器人配置说明 - 文档 - 企业微信开发者中心

Roadmap

  • v0.0.1: :tada: Initial project. Offering send Text and Markdown type message.

  • v0.0.2: :framed_picture: Add Image type message support;

    Add overheat detect function and unified exception handling

  • v0.0.3: :newspaper: Add News type message support.

  • v0.0.4: :open_file_folder: Add File type message support.

  • v0.0.5: :speaking_head: Add Voice type message support.

  • v0.0.6: :spiral_notepad: Add TextCard type message support.

  • v0.0.7: :card_file_box: Add PictureCard type message support.

  • v0.1.0: :thumbsup: First FULL capacity stable version release.Fix bugs and so on.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywgb-0.0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywgb-0.0.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file pywgb-0.0.2.tar.gz.

File metadata

  • Download URL: pywgb-0.0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywgb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a9decdb5096d7446eacb2bd72905129874518eeaa37b94d793c823bed97bf02c
MD5 c94397c216af4be65453d473d7ee8612
BLAKE2b-256 2f8744d6d447ec28e9bcd9e42a6c47f987f447d734518d6e78562ecc261b73f2

See more details on using hashes here.

File details

Details for the file pywgb-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pywgb-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywgb-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67cbb7318bfa42a548655bd8cd0fb95764d60a2a2722306e73b10aff786dda28
MD5 5de916549aa246b5e15f7f09ce18b256
BLAKE2b-256 fd96212858c5f23ee0c26c51ae2372b7a92d35fadd522c39d461c735286e1a0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page