aardio 文档

autos.feishuClient 库模块帮助文档

autos 成员列表 #

autos.feishuClient #

AA(aardio autos)飞书机器人消息监听客户端。
基于 web.feishu.socketClient 等标准库

autos.feishuClient() #

返回对象:autosFeishuClientObject

autos.feishuClient(winform, chatUi, appId, appSecret) #

创建飞书消息监听客户端
参数 winform 为主窗口
参数 chatUi 为聊天界面
参数 appId 为飞书应用 ID
参数 appSecret 为飞书应用密钥

autosFeishuClientObject 成员列表 #

autosFeishuClientObject.client #

底层 web.feishu.socketClient 对象

返回对象:feishuSocketClientObject

autosFeishuClientObject.replyFilePath(messageId, filePath) #

回复文件

autosFeishuClientObject.replyImagePath(messageId, imagePath) #

回复图片

autosFeishuClientObject.replyMarkdown(messageId, markdown, title, template) #

回复 Markdown 卡片消息

autosFeishuClientObject.replyText(messageId, text) #

回复文本消息

autosFeishuClientObject.sendFilePath(receiveId, filePath, receiveIdType) #

发送文件

autosFeishuClientObject.sendImagePath(receiveId, imagePath, receiveIdType) #

发送图片

autosFeishuClientObject.sendMarkdown(receiveId, markdown, receiveIdType, title, template) #

发送 Markdown 卡片消息
参数 receiveIdType 可选,默认 "open_id"

autosFeishuClientObject.sendText(receiveId, text, receiveIdType) #

发送文本消息
参数 receiveIdType 可选,默认 "open_id"

autosFeishuClientObject.start() #

启动飞书连接

autosFeishuClientObject.stop() #

停止飞书连接

Markdown 格式