github.com/gotd/td/tg.DialogPeerClassArray.AsDialogPeer (method)

one use

	github.com/gotd/td/tg (current package)
		tl_dialog_peer_slices_gen.go#L120: func (s DialogPeerClassArray) AsDialogPeer() (to DialogPeerArray) {