Skip to main content

group chat WeGroupChatBot for Wechat of enterprise 企业微信群机器人接口

Project description


group chat bot for Wechat of enterprise 企业微信群机器人接口




from WeGroupChatBot import GroupChatBot
import os


bot = GroupChatBot('8a6b7936-06b1-4ada-ab66-f6389d78f053')

# or support reverse proxy at version 0.0.6
bot = GroupChatBot('')

# send text

bot.send_text('hello world!')

# send markdown
bot.send_markdown('实时新增用户反馈<font color=\"warning\">132例</font>,请相关同事注意。\n'
                             '>类型:<font color=\"comment\">用户反馈</font> \n'
                             '>普通用户反馈:<font color=\"comment\">117例</font> \n'
                             '>VIP用户反馈:<font color=\"comment\">15例</font>'

# send a news
bot.send_a_news('Red Alert 2',

#send file 

bot.send_file(os.path.join(os.path.abspath(os.path.dirname(__file__)), './tests/2019.png'))

# When used in the reverse proxy, you must specify a specific media upload URL as the key, as shown in the following example
bot = GroupChatBot('')
bot.send_file(os.path.join(os.path.abspath(os.path.dirname(__file__)), './tests/2019.png'))

Bot groups

from WeGroupChatBot import GroupChatBots
bots= GroupChatBots('a73c9432-24f6-419b-a643-70baae301d17', 'a73c9432-24f1-418b-a643-70baae301d17')

# send text

bots.send_text('hello world!')

Project details

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wegroupchatBot-0.0.7-py3-none-any.whl (6.1 kB view hashes)

Uploaded py3

Supported by

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