Documentation ¶
Index ¶
- Constants
- func GenerateMessageUUID() (string, error)
- func IsMessageOfAction(text string) bool
- func IsMessageOfScript(text string) bool
- func MessageScriptKind(text string) string
- type Message
- type MessageAction
- type MessageAt
- type MessageAudio
- type MessageContact
- type MessageFile
- type MessageGroup
- type MessageImage
- type MessageLink
- type MessageLocation
- type MessageRich
- type MessageScript
- type MessageVideo
- type Page
- type Subscribe
Constants ¶
View Source
const ( EventTypeMessage = "message" EventTypeNotice = "notice" EventTypeRequest = "request" )
View Source
const ( MessageTypeText = "text" MessageTypeAt = "at" MessageTypeAudio = "audio" MessageTypeImage = "image" MessageTypeFile = "file" MessageTypeLocation = "location" MessageTypeVideo = "video" MessageTypeLink = "link" MessageTypeContact = "contact" MessageTypeGroup = "group" MessageTypeRich = "rich" MessageTypeAction = "action" MessageTypeScript = "script" )
View Source
const ( MessageScriptOfJavascript = "javascript" MessageScriptOfFlowscript = "flowscript" MessageScriptOfUndefined = "undefined" )
View Source
const ( PlatformSlack = "slack" PlatformTelegram = "telegram" PlatformDiscord = "discord" )
Variables ¶
This section is empty.
Functions ¶
func GenerateMessageUUID ¶
GenerateMessageID generates a random ID for a message
func IsMessageOfAction ¶
func IsMessageOfScript ¶
func MessageScriptKind ¶
Types ¶
type MessageAction ¶
type MessageContact ¶
type MessageGroup ¶
type MessageLocation ¶
type MessageRich ¶
type MessageScript ¶
Click to show internal directories.
Click to hide internal directories.