Skip to main content

http api for comwechatrobot

Project description

from wechatrobot import WeChatRobot


bot = WeChatRobot()

@bot.on("friend_msg")
def on_friend_msg(msg):
    bot.SendText(wxid = msg['sender'], msg = msg['message'])

@bot.on("group_msg")
def on_group_msg(msg):
    print(f"on_group_msg: {msg}")

@bot.on("self_msg")
def on_self_msg(msg):
    print(f"on_self_msg: {msg}")

bot.run()

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

python-comwechatrobot-http-1.0.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

python_comwechatrobot_http-1.0.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file python-comwechatrobot-http-1.0.1.tar.gz.

File metadata

File hashes

Hashes for python-comwechatrobot-http-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bfb016f4c18cdba66ade6da8c5b6c97b26ce7a4985ad843a5bed759003623931
MD5 d30d3ae5be9ad231afa98949cfb38b03
BLAKE2b-256 8b31e7d0a887ff45384d16912f105d95ae02146f424cb507fa6e518ce7ac083c

See more details on using hashes here.

File details

Details for the file python_comwechatrobot_http-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_comwechatrobot_http-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7aae9ae4797780d2809ce4e6eb899d44f16e6567ade91b0e9a41e94986689ca9
MD5 057fd3df3146ea395daa11df2aeb511c
BLAKE2b-256 701e7dc6968cb307202990438fd43b19f281d68db8293c1d8fe088e0bf27e92a

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