github.com/line/line-bot-sdk-go/v7@v7.21.0/linebot/mention.go (about)

     1  package linebot
     2  
     3  // MentionedTargetType type
     4  type MentionedTargetType string
     5  
     6  // MentionedTargetType constants
     7  const (
     8  	MentionedTargetTypeUser MentionedTargetType = "user"
     9  	MentionedTargetTypeAll  MentionedTargetType = "all"
    10  )
    11  
    12  // Mention type
    13  type Mention struct {
    14  	Mentionees []*Mentionee `json:"mentionees"`
    15  }
    16  
    17  // Mentionee type
    18  type Mentionee struct {
    19  	Index  int                 `json:"index"`
    20  	Length int                 `json:"length"`
    21  	Type   MentionedTargetType `json:"type"`
    22  	UserID string              `json:"userId,omitempty"`
    23  }