I am developing an app using teamsfx toolkit and I have two important use case.
Need to send notifications to particular users via API I also need to send a welcome message to newly installed users. I am using ConversationBot from @microosft/temasfx library to set adapter config and send notifications to users using API/notification URL like
const bot = new ConversationBot({
// The bot id and password to create BotFrameworkAdapter.
adapterConfig: {
appId: config.botId,
appPassword: config.botPassword,
}}
// and when the server.post api use this to send notification
for (const target of await Mybot.notification.installations()) {
I also need to extend an EventHandler class to override
this.onMembersAdded(async (context, next) => {()
method to send a welcome message. But I am unable to like these two classes in the same app.
I have
const bot = new ConversationBot
Like I also have
class WelcomeBot extends ActivityHandler
{
this.onMemebersAdded(){//sending welcome message}
So the question is how to link both in the same bot app so that I can send a welcome Message using EventHandler and send Notifications via ConversationBot?