github.com/Mrs4s/go-cqhttp@v1.2.0/coolq/api_v12.go (about)

     1  package coolq
     2  
     3  import (
     4  	"runtime"
     5  
     6  	"github.com/tidwall/gjson"
     7  
     8  	"github.com/Mrs4s/go-cqhttp/global"
     9  	"github.com/Mrs4s/go-cqhttp/internal/base"
    10  )
    11  
    12  // CQGetVersion 获取版本信息 OneBotV12
    13  //
    14  // https://git.io/JtwUs
    15  // @route12(get_version)
    16  func (bot *CQBot) CQGetVersion() global.MSG {
    17  	return OK(global.MSG{
    18  		"impl":            "go_cqhttp",
    19  		"platform":        "qq",
    20  		"version":         base.Version,
    21  		"onebot_version":  12,
    22  		"runtime_version": runtime.Version(),
    23  		"runtime_os":      runtime.GOOS,
    24  	})
    25  }
    26  
    27  // CQSendMessageV12 发送消息
    28  //
    29  // @route12(send_message)
    30  // @rename(m->message)
    31  func (bot *CQBot) CQSendMessageV12(groupID, userID, detailType string, m gjson.Result) global.MSG { // nolint
    32  	// TODO: implement
    33  	return OK(nil)
    34  }