1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-12 14:10:47 +08:00

finish handler

This commit is contained in:
源文雨
2023-10-15 17:12:16 +09:00
parent 6a42e70f55
commit 354ceb10c0
5 changed files with 111 additions and 57 deletions

View File

@@ -10,6 +10,10 @@ type Emoji struct {
Type uint32 `json:"type"`
}
func (e *Emoji) String() string {
return "<emoji:" + e.ID + ">"
}
// MessageReaction https://bot.q.qq.com/wiki/develop/api/openapi/reaction/model.html#messagereaction
type MessageReaction struct {
UserID string `json:"user_id"`
@@ -20,12 +24,12 @@ type MessageReaction struct {
}
// ReactionTargetType https://bot.q.qq.com/wiki/develop/api/openapi/reaction/model.html#reactiontargettype
type ReactionTargetType int
type ReactionTargetType string
// ReactionTarget https://bot.q.qq.com/wiki/develop/api/openapi/reaction/model.html#reactiontarget
type ReactionTarget struct {
ID string `json:"id"`
Type ReactionTargetType `json:"type"`
Type ReactionTargetType `json:"type"` // 实际是 string 而非 int
}
// GiveMessageReaction 对消息 message_id 进行表情表态