0

I am trying to create channel conversation using CloudAdapter.createConversationAsync() method. But getting error Incorrect conversation creation parameters. I am passing the following parameters.

const conversationParameters = {
            isGroup: false,
            bot: {
                id: `28:${MICROSOFT_APP_ID}`,
                name: ""
            },
            tenantId,
            channelData: {
                channel: {
                    id: channelId,
                }
            },
            members: []
        };
await this.adapter.createConversationAsync(MICROSOFT_APP_ID, channelId, process.env.MICROSOFT_SERVICE_URL, 'https://api.botframework.com', conversationParameters, async (context) => {
            const teamsChannelId = teamsGetChannelId(context.activity) || channelId;
            await TeamsInfo.sendMessageToTeamsChannel(context, activity, teamsChannelId, MICROSOFT_APP_ID);
        });

Does it mandatory to pass members in channel conversation ?

If we pass members in the conversationParameters then it works. I am not able to understand why members are required in channel conversation. I had search in microsoft docs but could not find the answer.

0 Answers0