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

[Question] Get group info on launch.

Open SirWintour opened this issue 10 years ago • 9 comments

Is it possible for the bot "on launch" to detect all friends/groups/chats it's a part of?

I currently have it so the user has to type to the bot atlas once to make it remember the session, but if i remove the bot or add it to a new chat, i want it to know it, every time i launch the program, if this has happened. I have an "on contactRelationUpdate" function, but this only runs if the bot is active and i want it to get the info whether it's active or not.

I catch the session.message.address currently when a user messages it, so it can store it, but i want it to detect it by itself, is this possible?

SirWintour avatar Aug 26 '16 09:08 SirWintour

which channel are you looking to add this functionality facebook/slack/groupme/skype?

hailiu2586 avatar Aug 26 '16 22:08 hailiu2586

@hailiu2586 It's for skype, i forgot to write it.

SirWintour avatar Aug 27 '16 08:08 SirWintour

I am also interested in this issue. I have similar task. I'm trying to get away from the use of desktop Skype API with wrapper skype4com. I look in the direction of Microsoft Bot Framework. I created and registered my Skype bot with the Microsoft Bot Connector like here: https://docs.botframework.com/en-us/csharp/builder/sdkreference/gettingstarted.html

Also I added my bot into several group conversations. Now I have a task to write a message to a specific group conversation. For this I need to get a list of group conversations and information about each conversation in which the bot is. I have been unable to find any information about it. Anyone know how to get a list of all groups conversations for Skype Microsoft Bot?

Ruslan878 avatar Aug 29 '16 08:08 Ruslan878

No one has no idea how to get all the group conversations of your bot?

Ruslan878 avatar Sep 01 '16 15:09 Ruslan878

Right now this is not enumerable within the Bot Framework SDK (or the protocol). The system assumes the bot caches information about the messages/groups its in when the bot is added to a given conversation.

jameslew avatar Sep 02 '16 22:09 jameslew

@jameslew So it's not possible at all, or is there a way around it?

SirWintour avatar Sep 03 '16 08:09 SirWintour

I've tagged the Skype team to see if they have any additional info, but at this time I don't know of any way around it. The Bot Framework service itself does not have a list of the groups your bot is in.

jameslew avatar Sep 03 '16 16:09 jameslew

Thank you for your answers. They confirmed my suspicions.

Ruslan878 avatar Sep 05 '16 14:09 Ruslan878

Confirming that in Skype there is no way to enumerate the conversations that a bot is currently active in.

nickcordrey avatar Sep 06 '16 19:09 nickcordrey