当前位置:网站首页>Push markdown format information to the nailing robot
Push markdown format information to the nailing robot
2022-06-24 22:59:00 【Woodcutter song leaves the forest】
1. Customize robot settings
Customize the configuration of the robot according to the official open document of nailing , The document address is : Custom robot access - Nail open platform (dingtalk.com)

2.Markdown Push form
- Markdown type

- Parameter description
3.Markdown Image format
Markdown Can be used in url Push connected pictures , The format is :, Attention should be paid to : this url The connection address can be obtained from a third party ( Such as oss) obtain , It can also be used locally apache2 establish http The server generates itself , Please refer to another blog post for the generation method and process “ Use apache2 establish http The server generates images url".
If you need to be in Markdown Introduce variables into , You can add... Before the text string “f", And add curly brackets to the variables to be introduced in the string to indicate , namely f"{ Variable name }/n/n". Note here , If you are introducing "f" You need to bold the subsequent strings (** String to be bold **), You need to use the bold string ** after , add to “/n", Otherwise, the message pushed by nail is on the mobile phone APP End display exception ( The computer side is normal )
text = {
"msgtype": "markdown",
"markdown": {
"title": " Warning ",
"text": "#### ** Message alert ** @all \n"
f"> ** Time :**\n{t0}\n\n"
f"> ** type :**\n{type}\n\n"
f"> ** Alarm information :**\n{reason}\n\n"
f"> \n\n"
f"> ###### {t0} Release \n"
},
"at": {
"atMobiles": [
],
"atUserIds": [
],
"isAtAll": True
}
}
边栏推荐
- ThreadLocal local thread
- Principle of IP routing
- Win10 or win11 printer cannot print
- Dynamic menu, auto align
- See how sparksql supports enterprise data warehouse
- The difference between get and post
- Solve the problem of non secure websites requesting localhost to report CORS after chrome94
- 【軟件工程】期末重點
- ThreadLocal memory leak
- Research and investment strategy report on China's bridge anticorrosive coating industry (2022 Edition)
猜你喜欢

docker安装mysql-简单无坑

Servlet

23研考生注意啦!备考期间最容易中招的骗局,居然是它们?!

Talk about GC mechanism often asked in interview

2022-06-16 工作记录--JS-判断字符串型数字有几位 + 判断数值型数字有几位 + 限制文本长度(最多展示n个字,超出...)

Design and implementation of spark offline development framework

京东618会议平板排行榜公布,新锐黑马品牌会参谋角逐前三名,向国货老大华为学习

Wechat side: what is consistent hash? In what scenario? What problems have been solved?

JD 618 conference tablet ranking list announced that the new dark horse brand staff will compete for the top three, learning from Huawei, the leader of domestic products

2022年安全员-A证考题及答案
随机推荐
机器学习编译入门课程学习笔记第一讲 机器学习编译概述
vulnhub Vegeta: 1
Web security XSS foundation 06
LeetCode Algorithm 剑指 Offer II 027. 回文链表
2022-06-10 工作记录--JS-获取到某一日期N天后的日期
糖豆人登录报错解决方案
It's hard to hear C language? Why don't you take a look at my article (7) input and output
【WSL】SSH 远程连接及宿主机端口转发配置
Vulnhub Vegeta: 1
Attackg: constructing technical knowledge graph from cyber thread intelligence reports
双亲委派机制
MySQL夺命10问,你能坚持到第几问?
Solution to the login error of tangdou people
「ARM 架构」是一种怎样的处理器架构?
【軟件工程】期末重點
环境配置 | VS2017配置OpenMesh源码和环境
详细了解关于sentinel的实际应用
[personal experiment report]
是否需要提高代码阅读能力?这有技巧
Wechat side: what is consistent hash? In what scenario? What problems have been solved?