// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package chat

// schema: chat.bsky.convo.getConvoForMembers

import (
	"context"

	"github.com/bluesky-social/indigo/xrpc"
)

// ConvoGetConvoForMembers_Output is the output of a chat.bsky.convo.getConvoForMembers call.
type ConvoGetConvoForMembers_Output struct {
	Convo *ConvoDefs_ConvoView `json:"convo" cborgen:"convo"`
}

// ConvoGetConvoForMembers calls the XRPC method "chat.bsky.convo.getConvoForMembers".
func ConvoGetConvoForMembers(ctx context.Context, c *xrpc.Client, members []string) (*ConvoGetConvoForMembers_Output, error) {
	var out ConvoGetConvoForMembers_Output

	params := map[string]interface{}{
		"members": members,
	}
	if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.convo.getConvoForMembers", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
