Currently I'm using the api for my bot to send messages, but how can I reply to a specific bot's message and ban them for the time that I want. In the example below:
I reply to any bot message and request that the message be banned for any time?
For example below I want to ban content 'test' for one hour and the result I want when I call api with content 'test' and if it is still within banned time it will not send that content
Or is there any way when user reply to bot's message i use '#mybot ban this content for 3600 seconds' i can get user reply and user reply automatically ?
Related
Context
Currently we are using Azure Bot Service. The Bot Service is setting up an message endpoint which is directed to our on-pre server
We can successful detect an request coming in when user send something through bot.
But when user edit the previous messages, not request comes in
Message endpoint on Azure
User send a new message on bot
User edit a message on bot
Question
Does there exists a way to receive the update request when users edit their previous messages on bot?
Check out the link mentioned below to verify "Update Activity" section which is nearer to the current requirement.
https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0#update-activity
I connected the dialogflow bot to the telegram chat and it responds to user messages but without specifying their names and periodically determines random words from the text of the message as the user names.
How to set up a dialogflow bot in the telegram chat so it receives not only messages, but the message sender user names too?
When using Dialogflow with Telegram, Telegram already provides you a unique id for every Telegram user. Try to output the body request from Telegram and then catch that uniqueid value.
I checked through the telegram webhook - the username is indeed sent to the bot with the message.
Probably the problem is in the telegram integration code of the dialogflow-es bot.
I have a telegram group with several human members and a bot. This bot sends regular status updates to the group. I do this with a simple curl command.
https://api.telegram.org/bot<MYBOT-ID>/sendMessage?chat_id=<MYCHAT-ID>=&text=hello%20world
Is there a possibility that the bot sends a message to a specific user in the group, e.g. to inform about a failure. The other members of the group should of course not see or hear this.
You can use "user_id" instead of "chat_id" to send the message to the PV of users instead of sending message in the group
https://api.telegram.org/bot<MYBOT-ID>/sendMessage?chat_id=<USER-ID>=&text=hello%20world
I have created an intent with an event. I'm sending a POST request as described in the docs with the proper sessionId (that corresponds to my conversation with my Bot On Slack)
When I send the request, the intent is triggered and the response to my request is correct, but there is no message displayed on Slack. I have double-checked the session, it is correct as I have put a context with some values that I can get back in my request's reponse.
Unfortunately it's not possible to send requests to dialogflow to display a message for the user. Your service (slack in this case) can send a query to dialogflow from a user input and then print the response, not the other way around.
What you could do instead is to add another endpoint to slack where your fulfillment can send messages directly to slack. In that case the fulfillment could send a query to dialogflow to get a formatted response and then send the response to slack.
Currently i am using slack channel with bot builder.
I want to use email channel, is there any sample code for this.
What is effective way to send email from bot to avoid spam
I am using node js
There's no extra code needed for the email channel. Your bot will reply to the body of an email it receives. You can add things like channel specific code if you like. Right now only office 365 emails will work, please read the documentation here
The bot will reply to an email sent to the registered email address with an email where the body is the same message that you would see as a response in other channels like slack, emulator, etc