func NewAccessManager(chats *TypeMessagesChats, contacts *TypeContactsContacts) (hm *AccessManager) {
	hm = &AccessManager{make(map[int32]Access), make(map[int32]Access)}
	if chats != nil {
		hm.importTypeMessagesChats(chats)
	}
	if contacts != nil {
		hm.importTypeContactsContacts(contacts)
	}
	return
}
NewAccessManager instantiate a AccessManager
If chats or contacts are given, it returns the instance fulfilled
with the given id and hashes. Empty, otherwise.
package mtproto
import (
	"io/ioutil"
	"os"
	"fmt"
	"github.com/golang/protobuf/proto"
)
type AccessManager struct {
	channels map[int32]Access
	users map[int32]Access
}
type Access struct {
	ID       int32
	Hash     int64
}