package
0.0.0-20190915143611-7eed820cac55
Repository: https://github.com/ghostlee/qq-bot-api.git
Documentation: pkg.go.dev

# Functions

Command parses a command string and returns the command with command arguments.
DecodeCQCodeText unescapes special characters in a cqcode value.
DecodeCQText unescapes special characters in a non-media plain message.
EncodeCQCodeText escapes special characters in a cqcode value.
EncodeCQText escapes special characters in a non-media plain message.
FormatCQCode returns the CQCode of a Media.
IsCommand indicates whether a string is a command.
NewFaceFromName returns a face that corresponds to a given face name.
NewMessage returns an empty Message.
NewMessageSegment formats MessageSegment from any type of Media.
NewMessageSegmentFromCQCode parses a CQCode to a NewMessageSegment.
ParseMedia parses a CQEncoded string to a specified type of Media.
ParseMessage parses msg, which might have 2 types, string or array, depending on the configuration of cqhttp, to a Message.
ParseMessageFromArray parses msg as type array to a Message.
ParseMessageFromMessageSegments parses a sort of MessageSegment to a Message.
ParseMessageFromString parses msg as type string to a Message.
ParseMessageSegments parses msg, which might have 2 types, string or array, depending on the configuration of cqhttp, to a sort of MessageSegment.
ParseMessageSegmentsFromArray parses msg as type array to a sort of MessageSegment.
ParseMessageSegmentsFromString parses msg as type string to a sort of MessageSegment.

# Constants

Common value of Rps.
Common value of Rps.
Common value of Rps.

# Variables

CommandPrefix is the prefix to identify a message as a command.
StrictCommand indicates that whether a command must start with a specified command prefix, default to "/".

# Structs

Mention @.
原创表情.
掷骰子魔法表情.
Emoji.
QQ表情.
Image.
位置.
A MessageSegment is a struct which has "type" and "data", see documentation at https://cqhttp.cc/docs/3.4/#/Message?id=%E6%B6%88%E6%81%AF%E6%AE%B5%EF%BC%88%E5%B9%BF%E4%B9%89-cq-%E7%A0%81%EF%BC%89.
音乐.
Record.
红包.
其他富媒体.
猜拳魔法表情.
小表情.
戳一戳.
分享链接.
厘米秀.
签到.
Plain text.

# Interfaces

Media is any kind of media that could be contained in a message.

# Type aliases

A Message is a sort of Media.