Documentation ¶
Index ¶
- func CQCodeEscapeText(raw string) string
- func CQCodeEscapeValue(value string) string
- func CQCodeUnescapeText(content string) string
- func CQCodeUnescapeValue(content string) string
- func SetMessageFormat(f string)
- func ToFormattedMessage(e []message.IMessageElement, code int64, raw ...bool) (r interface{})
- func ToGlobalId(code int64, msgId int32) int32
- func ToStringMessage(e []message.IMessageElement, code int64, raw ...bool) (r string)
- type CQBot
- func (bot *CQBot) CQCanSendImage() MSG
- func (bot *CQBot) CQCanSendRecord() MSG
- func (bot *CQBot) CQDeleteMessage(messageId int32) MSG
- func (bot *CQBot) CQGetForwardMessage(resId string) MSG
- func (bot *CQBot) CQGetFriendList() MSG
- func (bot *CQBot) CQGetGroupHonorInfo(groupId int64, t string) MSG
- func (bot *CQBot) CQGetGroupInfo(groupId int64) MSG
- func (bot *CQBot) CQGetGroupList(noCache bool) MSG
- func (bot *CQBot) CQGetGroupMemberInfo(groupId, userId int64, noCache bool) MSG
- func (bot *CQBot) CQGetGroupMemberList(groupId int64) MSG
- func (bot *CQBot) CQGetGroupMessage(messageId int32) MSG
- func (bot *CQBot) CQGetImage(file string) MSG
- func (bot *CQBot) CQGetLoginInfo() MSG
- func (bot *CQBot) CQGetStatus() MSG
- func (bot *CQBot) CQGetVersionInfo() MSG
- func (bot *CQBot) CQHandleQuickOperation(context, operation gjson.Result) MSG
- func (bot *CQBot) CQProcessFriendRequest(flag string, approve bool) MSG
- func (bot *CQBot) CQProcessGroupRequest(flag, subType string, approve bool) MSG
- func (bot *CQBot) CQSendGroupForwardMessage(groupId int64, m gjson.Result) MSG
- func (bot *CQBot) CQSendGroupMessage(groupId int64, i interface{}, autoEscape bool) MSG
- func (bot *CQBot) CQSendPrivateMessage(userId int64, i interface{}, autoEscape bool) MSG
- func (bot *CQBot) CQSetGroupBan(groupId, userId int64, duration uint32) MSG
- func (bot *CQBot) CQSetGroupCard(groupId, userId int64, card string) MSG
- func (bot *CQBot) CQSetGroupKick(groupId, userId int64, msg string) MSG
- func (bot *CQBot) CQSetGroupLeave(groupId int64) MSG
- func (bot *CQBot) CQSetGroupName(groupId int64, name string) MSG
- func (bot *CQBot) CQSetGroupSpecialTitle(groupId, userId int64, title string) MSG
- func (bot *CQBot) CQSetGroupWholeBan(groupId int64, enable bool) MSG
- func (bot *CQBot) ConvertObjectMessage(m gjson.Result, group bool) (r []message.IMessageElement)
- func (bot *CQBot) ConvertStringMessage(m string, group bool) (r []message.IMessageElement)
- func (bot *CQBot) GetGroupMessage(mid int32) MSG
- func (bot *CQBot) InsertGroupMessage(m *message.GroupMessage) int32
- func (bot *CQBot) OnEventPush(f func(m MSG))
- func (bot *CQBot) Release()
- func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int32
- func (bot *CQBot) SendPrivateMessage(target int64, m *message.SendingMessage) int32
- func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message.IMessageElement, error)
- type MSG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CQCodeEscapeText ¶ added in v0.9.16
func CQCodeEscapeValue ¶ added in v0.9.18
func CQCodeUnescapeText ¶ added in v0.9.16
func CQCodeUnescapeValue ¶ added in v0.9.18
func SetMessageFormat ¶ added in v0.9.18
func SetMessageFormat(f string)
func ToFormattedMessage ¶ added in v0.9.18
func ToFormattedMessage(e []message.IMessageElement, code int64, raw ...bool) (r interface{})
func ToGlobalId ¶
func ToStringMessage ¶
func ToStringMessage(e []message.IMessageElement, code int64, raw ...bool) (r string)
Types ¶
type CQBot ¶
func (*CQBot) CQCanSendImage ¶
func (*CQBot) CQCanSendRecord ¶
func (*CQBot) CQDeleteMessage ¶
https://cqhttp.cc/docs/4.15/#/API?id=delete_msg-%E6%92%A4%E5%9B%9E%E6%B6%88%E6%81%AF
func (*CQBot) CQGetForwardMessage ¶ added in v0.9.3
func (*CQBot) CQGetFriendList ¶
func (*CQBot) CQGetGroupHonorInfo ¶ added in v0.9.20
func (*CQBot) CQGetGroupInfo ¶
https://cqhttp.cc/docs/4.15/#/API?id=get_group_info-%E8%8E%B7%E5%8F%96%E7%BE%A4%E4%BF%A1%E6%81%AF
func (*CQBot) CQGetGroupList ¶
https://cqhttp.cc/docs/4.15/#/API?id=get_group_list-%E8%8E%B7%E5%8F%96%E7%BE%A4%E5%88%97%E8%A1%A8
func (*CQBot) CQGetGroupMemberInfo ¶
func (*CQBot) CQGetGroupMemberList ¶
func (*CQBot) CQGetGroupMessage ¶
func (*CQBot) CQGetImage ¶
func (*CQBot) CQGetLoginInfo ¶
func (*CQBot) CQGetStatus ¶
func (*CQBot) CQGetVersionInfo ¶
func (*CQBot) CQHandleQuickOperation ¶ added in v0.9.1
https://cqhttp.cc/docs/4.15/#/API?id=-handle_quick_operation-%E5%AF%B9%E4%BA%8B%E4%BB%B6%E6%89%A7%E8%A1%8C%E5%BF%AB%E9%80%9F%E6%93%8D%E4%BD%9C https://github.com/richardchien/coolq-http-api/blob/master/src/cqhttp/plugins/web/http.cpp#L376
func (*CQBot) CQProcessFriendRequest ¶
func (*CQBot) CQProcessGroupRequest ¶
func (*CQBot) CQSendGroupForwardMessage ¶ added in v0.9.4
func (*CQBot) CQSendGroupMessage ¶
https://cqhttp.cc/docs/4.15/#/API?id=send_group_msg-%E5%8F%91%E9%80%81%E7%BE%A4%E6%B6%88%E6%81%AF
func (*CQBot) CQSendPrivateMessage ¶
func (*CQBot) CQSetGroupBan ¶
func (*CQBot) CQSetGroupCard ¶
func (*CQBot) CQSetGroupKick ¶
https://cqhttp.cc/docs/4.15/#/API?id=set_group_kick-%E7%BE%A4%E7%BB%84%E8%B8%A2%E4%BA%BA
func (*CQBot) CQSetGroupLeave ¶ added in v0.9.6
https://cqhttp.cc/docs/4.15/#/API?id=set_group_leave-%E9%80%80%E5%87%BA%E7%BE%A4%E7%BB%84
func (*CQBot) CQSetGroupSpecialTitle ¶
func (*CQBot) CQSetGroupWholeBan ¶
func (*CQBot) ConvertObjectMessage ¶ added in v0.9.4
func (*CQBot) ConvertStringMessage ¶
func (bot *CQBot) ConvertStringMessage(m string, group bool) (r []message.IMessageElement)
func (*CQBot) GetGroupMessage ¶
func (*CQBot) InsertGroupMessage ¶
func (bot *CQBot) InsertGroupMessage(m *message.GroupMessage) int32
func (*CQBot) OnEventPush ¶
func (*CQBot) SendGroupMessage ¶
func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int32
func (*CQBot) SendPrivateMessage ¶
func (bot *CQBot) SendPrivateMessage(target int64, m *message.SendingMessage) int32