MCPcopy Create free account
hub / github.com/asternic/wuzapi / GetPollOptions

Method GetPollOptions

clients.go:109–116  ·  view source on GitHub ↗

GetPollOptions returns the plaintext options associated with a poll message, or nil if none were recorded (e.g. wuzapi restarted after the poll was sent).

(userID, msgID string)

Source from the content-addressed store, hash-verified

107// message, or nil if none were recorded (e.g. wuzapi restarted after the
108// poll was sent).
109func (cm *ClientManager) GetPollOptions(userID, msgID string) []string {
110 cm.RLock()
111 defer cm.RUnlock()
112 if byUser := cm.pollOptions[userID]; byUser != nil {
113 return byUser[msgID]
114 }
115 return nil
116}

Callers 1

myEventHandlerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected