code: func (gw *Gateway) ignoreTextEmpty(msg *config.Message) bool {
  	if msg.Text != "" {
  		return false
  	}
  	if msg.Event == config.EventUserTyping {
  		return false
  	}
  	// we have an attachment or actual bytes, do not ignore
  	if msg.Extra != nil &&
  		(msg.Extra["attachments"] != nil ||
  			len(msg.Extra["file"]) > 0 ||
  			len(msg.Extra[config.EventFileFailureSize]) > 0) {
  		return false
  	}
  	gw.logger.Debugf("ignoring empty message %#v from %s", msg, msg.Account)
  	return true
  }
docs: // ignoreTextEmpty returns true if we need to ignore a message with an empty text.