// 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/lex/util"
)

// 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 util.LexClient, members []string) (*ConvoGetConvoForMembers_Output, error) {
	var out ConvoGetConvoForMembers_Output

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

	return &out, nil
}
