botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

How to send a message to all channels based on external event?

Open FedericoElles opened this issue 10 years ago • 3 comments

I'm trying to create a news bot which should inform all connected chats/channels/users if for example any "breaking news" did happen. So I need to run for example based on an external API call:

bot.beginDialog(...)

which requires address.user && address.channel

Questions: Do I need to remember all users and channels in my app, or is there a way in the BotFramework to retrive all connected users/channels?

This could be also useful to tell users if a bot has learned new features or any maintainance will occure.

Thanks a lot.

FedericoElles avatar Apr 08 '16 07:04 FedericoElles

We currently do not support the ability to retrieve a list of all the users / channels that have authorized your bot. For the moment, you will need to store that on your own.

LarsLiden avatar Apr 08 '16 20:04 LarsLiden

lars is correct

tomlm avatar Apr 09 '16 01:04 tomlm

@FedericoElles , you could make sending news ? I'm also hitting me with this. Best regards.

andrecordeiro avatar Sep 13 '16 18:09 andrecordeiro