WeRoBot 1.4.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 82 页 | 88.39 KB | 1 年前3
WeRoBot 1.6.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 94 页 | 74.98 KB | 1 年前3
WeRoBot 1.7.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 94 页 | 75.38 KB | 1 年前3
WeRoBot 1.3.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 76 页 | 84.54 KB | 1 年前3
WeRoBot 1.6.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 85 页 | 89.26 KB | 1 年前3
WeRoBot 1.8.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 96 页 | 75.79 KB | 1 年前3
WeRoBot 1.5.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 83 页 | 88.85 KB | 1 年前3
WeRoBot 1.9.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 99 页 | 76.68 KB | 1 年前3
WeRoBot 1.4.1 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 82 页 | 88.42 KB | 1 年前3
WeRoBot 1.12.0 微信公众号开发框架文档'Hello World!' # 让服务器监听在 0.0.0.0:80 robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 消息处理 WeRoBot 会解析微信服务器发来的消息, 并将消息转换成成 Message 或者是 Event 。 Message 表示用户发来的消息,如文本消息、图片消息; Event 则表 WeRoBot 集成到其他 Web 框架内,请阅读 与其他 Web 框架集成 在独立服务器上部署 使用 werobot.run 来启动 WSGI 服务器 你可以在 werobot.config 中配置好 WeRoBot 需要监听的地址和端口号, 然后 使用 werobot.run 来启动服务器 import werobot robot = werobot.WeRoBot(token='tokenhere') echo(message): return 'Hello World!' robot.config['HOST'] = '0.0.0.0' robot.config['PORT'] = 80 robot.run() 注解 你需要 root 或管理员权限才能监听 1024 以下的端口。 你可以通过传递 server 参数来手动指定使用的服务器 import werobot robot = werobot0 码力 | 103 页 | 74.49 KB | 1 年前3
共 653 条
- 1
- 2
- 3
- 4
- 5
- 6
- 66













