(target uint32, display ...string)
| 173 | } |
| 174 | |
| 175 | func NewAt(target uint32, display ...string) *AtElement { |
| 176 | dis := "@" + strconv.FormatInt(int64(target), 10) |
| 177 | if target == 0 { |
| 178 | dis = "@全体成员" |
| 179 | } |
| 180 | if len(display) != 0 { |
| 181 | dis = display[0] |
| 182 | } |
| 183 | return &AtElement{ |
| 184 | TargetUin: target, |
| 185 | Display: dis, |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | func NewGroupReply(m *GroupMessage) *ReplyElement { |
| 190 | return &ReplyElement{ |
no outgoing calls
no test coverage detected