feat: integrate creator hub douyin workflows
This commit is contained in:
@@ -166,6 +166,15 @@ func ValidEventType(eventType string) bool {
|
||||
}
|
||||
}
|
||||
|
||||
func ValidMessageType(messageType string) bool {
|
||||
switch messageType {
|
||||
case MessageTypeText, MessageTypeImage, MessageTypeVoice, MessageTypeVideo, MessageTypeSticker, MessageTypeUnknown:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func ValidAction(action string) bool {
|
||||
switch action {
|
||||
case ActionDM, ActionReplyComment, ActionLikeComment, ActionLikeWork, ActionFollow, ActionRepost:
|
||||
|
||||
Reference in New Issue
Block a user