Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaData ¶ added in v1.9.0
type MetaData struct { Images int `json:"images"` // number of images in the message Links int `json:"links"` // number of links in the message HasVideo bool `json:"has_video"` // true if the message has a video or video note }
MetaData is a meta-info about the message, provided by the client.
type Request ¶
type Request struct { Msg string `json:"msg"` // message to check UserID string `json:"user_id"` // user id UserName string `json:"user_name"` // user name Meta MetaData `json:"meta"` // meta-info, provided by the client }
Request is a request to check a message for spam.
Click to show internal directories.
Click to hide internal directories.