Can't message Skype bot in preview mode - ms-office

I've added my Skype bot (in preview mode) to my Skype account. The Skype bot seems to be properly configured, as he respons to the OnContactAddedAsync event properly by replying a pre-defined message.
However, I cannot further test the OnPersonalChatMessageReceivedAsync handler, as I'm not able to message my bot, i.e., Skype shows me the following:
Is it because I'm not added to the bot's contact list? If so, how to add somebody to the bot's contact list using the Skype Bot SDK? I have not found any way to do so in the OnContactAddedAsync handler.
Is it because of some other reason?

You need to (forcefully) update your Skype client to the lastet version in order to make it work.
Skype v7.21.0.100 does not work.
Skype v7.21.85.100 does work.
Skype v7.22.85.107 does work.
When you add the bot to your contact list in the latter version, it automatically accepts the request and you are able to message the bot.

Related

ms teams custom app starting a chat session with a bot

I'm building a teams app that contains some tabs and a bot.
Is it possible to, when an action is performed on a tab (i.e. clicking a button), initialize automatically a chat with the bot, or send a specific message?
Tks
Based on the comments above, what you're looking to do is implement "pro-active" messaging, where the bot itself initiates the conversation. It's definitely possible, and you can read more to get started here and here. The most important thing to know is that your user has to have installed the bot already, to get a "conversation context", but if they've installed the app, which includes the bot, to get the tab, then you're fine. You need to get some variables when they do install the app, which you hook into the conversationUpdate event to get access to. Give it a go and let me know if you have specific questions, here on SOverflow.

Chat messages from Dialogflow don't appear in Slack

I'm creating a bot with Dialogflow. It's quite straigtforward, and it worked on Telegram in no time. But things complicated when trying to integrate Dialogflow with Slack.
My bot is able to read direct messages from Slack, and I'm sure of it because the messages from Slack appear in the History section of Dialogflow. Good news there. In the same screen, I can see that Dialogflow answered all the messages Slack sent to it. But sadly, those answers don't appear in Slack.
By the way, just to confuse me more, the Dialogflow's test bot works flawlessly with Slack, publishing there with no issue. So, it's not anything related with the common values you have to copy from Slack and paste to Dialogflow to enable the integration.
It seems that my bot on Slack misses some kind of permission of the OAuth & Permissions screen, but I've tried some of theme, and I can't find the good one. Right now I'm using bot, chat:write:bot, im:write, and channels:read. I guess that only the two first ones are needed, but I'm totally lost and tried adding permissions with no reason. And then, I wrote this post.
Is there someone who has a simple bot that sends messages in direct messages on Slack? What are the needed permissions?
I had the same issue, it's quite easy to solve: just go on Manage Distribution in your bot's Slack API panel and click on the "Add to Slack" button.
That's all!
Under OAuth & Permissions, add "chat:write" to OAuth Scope. That will allow your bot to send messages to other users.

Microsoft bot builder cards imback method doesnt display text on Slack

I have a bot using Microsoft bot builder node.js sdk. I started to add hero cards to the conversation and it is working fine except that even if I use imBack type button, slack doesn't display the value of the button. However, in other channels like Skype, when user presses 'OK' say, 'OK' is also written into the chat screen as a user message, as expected
I want to know how I can have the same with Slack
Thanks
Due to the differences in the implementation between Skype (1st party partner channel) and Slack (3rd party channel), what you are asking for is not currently available as a feature.
Slack channel does not support imBack style messages. If you send an imBack on Slack, it is converted to postBack style message (message text is hidden from user).

How to read a message from a bot via telegram API?

I have a room with a couple of bots, one of them needs to read all the messages on the room including other bot's messages.
Telegram API says bots can't see other bots message otherwise they might get caught in a "loop".
Since i really need to work around this i'm wondering if there is a known workaround?
There cannot be any workaround using the Bot APIs since the messages in getUpdates or webhook of the Bot will be from Users alone.
One workaround could be to use the telegram-cli and create a normal user as a Bot.

How to detect bot message/user message?

My FB-NodeJS-API prototype is not working correctly because my webhook is receiving the bot respond which is then sent to API.AI.
I need to set a condition where only a user's message should be received on the webhook request or only user's message should be sent to API.AI.
Can anyone advise me on this?
Can you explain the problem better? Please add the relevant code.
The bot response should go the user, not the webhook. The user input will come to the webhook.
I would suggest getting the bot to work without API.AI first and then adding support. My bot is in node.js so you may just want to jump to the source code.
For more information on setting up a bot see my article Facebook Bots for Fun and Profit
The example bot is DMS Software Bot
The source code is Github fb-robot

Resources