基本的webhook消息,接下来要添加bot交互

py-slack的Python项目详细描述


py_松弛度

基本的webhook消息,接下来需要交互性

cli

python3 send_hook.py https://hook_url/xxxxx/xxxx string_of_txt

代码

实际上,我用它来发送python对象的json。下面是如何在代码中使用它:

from send_hook import send_msg_hook

send_hook_msg(hook_url, msg, format_type)
#hook_url expects a string url with the appropriate protocol at the beginning, for example http:// or https://
#msg expects either a dictionary or a string
#format_type defaults to 'snippet', but can be set to 'plain'

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何解析大型SOAP响应   java如何在ionic 3应用程序屏幕上设置自定义微调器   java如何在没有GPU的情况下运行libGDX headless,但仍然渲染帧?   java SpringBoot项目部署到服务器时发生异常   java Firestore:检查文档中的值是否存在   从其他类填充数组时出现java未识别的NullPointerException   java BouncyCastle最后一个字节解密问题   java使用属性将ListMultimap<Object,Object>写入和读取到文件   从jar执行程序时的java动态加载问题   java比较泛型类型(使用nodes私有类在LinkedList的上下文中扩展vs实现)   使用java编程的版本控制   java如何强制文本转到面板的按钮?   安全编码用户分层java   java将数字格式化为货币   使用printf的java格式化表   java如何使用LiveData更新RecyclerView示例:SeenCounter、CommentCounter、LikeCounter   数组逻辑OR和模运算符在Java中表现异常   java需要分别管理/集成32位和64位JVM运行的两个JAR