Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 信息种类 MsgPostType = "message" ReqPostType = "request" NtsPostType = "notice" MtaPostType = "meta_event" PriMsgType = "private" GruMsgType = "group" FriSubMsgType = "friend" GruSubMsgType = "group" GrusSubMsgType = "group_self" NorSubMsgType = "normal" AoySubMsgType = "anonymous" // 匿名 NtsSubMsgType = "notice" // 群内禁止私聊的通告 FriRequestType = "friend" GruRequestType = "group" GruUplNtsType = "group_upload" GruAdmNtsType = "group_admin" GruDecNtsType = "group_decrease" GruIncNtsType = "group_increase" GruBanNtsType = "group_ban" GruRecNtsType = "group_recall" GruCadNtsType = "group_card" FriAddNtsType = "friend_add" FriRecNtsType = "friend_recall" OffLinNtsType = "offline_file" CliStuNtsType = "client_status" EssNtsType = "essence" NotifyNtsType = "notify" HonNotifySubType = "honor" PokNotifySubType = "poke" OwnRoleType = "owner" AdmRoleType = "admin" MebRoleType = "member" )
receive
View Source
const ( MsgSendApi = "send_msg" MsgDeleteApi = "delete_msg" GetImgApi = "get_image" GetBotInfo = "get_login_info" GetStrangerInfoApi = "get_stranger_info" GroupKickApi = "set_group_kick" GroupBanApi = "set_group_ban" GroupCardApi = "set_group_card" GroupLeaveApi = "set_group_leave" GruRequestApi = "set_group_add_request" GruGetListApi = "get_group_list" FriDelApi = "delete_friend" FriRequestApi = "set_friend_add_request" FriGetListApi = "get_friend_list" CanSendImgApi = "can_send_image" )
send thing
Variables ¶
View Source
var (
DefaultBotConfig *botConfig
)
View Source
var PluginMgr *pluginManager
Functions ¶
This section is empty.
Types ¶
type Asender ¶
type Bot ¶
func (*Bot) QuickTalk ¶
快速反应,发送请求,接收json 的 []byte, 如果有错误会返回error 第一个参数是api的url,第二个参数是请求的 params struct
type RecvMessage ¶
type RecvMessage struct { Sender Asender `json:"sender"` SubType string `json:"sub_type"` TempSource string `json:"temp_source"` MessageType string `json:"message_type"` GroupId int64 `json:"group_id"` Message string `json:"message"` }
func (*RecvMessage) String ¶
func (msg *RecvMessage) String() string
type RecvMeta ¶
type RecvNotice ¶
type RecvNotice struct { NoticeType string `json:"notice_type"` SubType string `json:"sub_type"` SenderId int64 `json:"sender_id"` TargetId int64 `json:"target_id"` GroupId int64 `json:"group_id"` }
func (*RecvNotice) String ¶
func (nts *RecvNotice) String() string
type RecvRequest ¶
type RecvRequest struct { RequestType string `json:"request_type"` GroupId int64 `json:"group_id"` UserId int64 `json:"user_id"` Flag string `json:"flag"` SubType string `json:"sub_type"` }
func (*RecvRequest) String ¶
func (req *RecvRequest) String() string
type SendRespondJson ¶
Click to show internal directories.
Click to hide internal directories.