KaiHeiLaAPI

package
v1.0.0-beta.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL