func NewChannel(name string, private bool) *Chat {
	ch := Chat{
		Name:    name,
		Members: make(map[string]*User),
	}
	if private {
		ch.Secret = newSecret()
	}
	return &ch
}
NewChannel creates new channel chat
package goch
import (
	"errors"
	"fmt"
	"github.com/rs/xid"
	"github.com/vmihailenco/msgpack"
)