Documentation
¶
Overview ¶
* @Author: NyanCatda * @Date: 2021-11-15 17:23:29 * @LastEditTime: 2022-03-07 19:02:23 * @LastEditors: NyanCatda * @Description: KaiHeiLa API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\KaiHeiLaAPI\KaiHeiLaAPI.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
APILink = "https://www.kaiheila.cn/"
)
Functions ¶
func SendChannelMessage ¶
func SendChannelMessage(Type int, target_id string, content string, quote bool, quoteID string) ([]byte, *http.Response, error)
*
- @description: 发送频道聊天消息
- @param {int} Type 消息类型 1 文本类型,2 图片消息,3 视频消息,4 文件消息,9 代表 kmarkdown 消息, 10 代表卡片消息
- @param {string} target_id 目标频道id
- @param {string} content 消息内容
- @param {bool} quote 是否需要回复
- @param {string} quoteID 回复ID
- @return {[]byte}
- @return {*http.Response}
- @return {error}
func SendDirectMessage ¶
func SendDirectMessage(Type int, target_id string, content string, quote bool, quoteID string) ([]byte, *http.Response, error)
*
- @description: 发送私信消息
- @param {int} Type 消息类型 1 文本类型,2 图片消息,3 视频消息,4 文件消息,9 代表 kmarkdown 消息, 10 代表卡片消息
- @param {string} target_id 目标用户id
- @param {string} content 消息内容
- @param {bool} quote 是否需要回复
- @param {string} quoteID 回复ID
- @return {[]byte}
- @return {*http.Response}
- @return {error}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.