is it possible to install copy protection in a telegram bot?
the bot sends docx files, images and text.
I would like to make it so that they cannot be copied but can be viewed. I couldn't find anything in the telegram bot api documentation, I can't Google it either.
the bot is written in node.js. used the node-telegram-bot-api library
For the third day I have been struggling with the question, suddenly who knows if it is possible at all. Maybe it can be done in some other way. For example, to raise a web server where you can watch content and send only links in the bot.
You can de-activate buttons like "Save As..." or "Share to..." by adding a protect_content parameter. It is available for many methods, including sendMessage, sendPhoto, sendDocument.
Of course anything that can be viewed can also be copied in some way or another. Nonetheless it provides some protection.
Related
I was wondering if there are modules, or code snippets to create a program that connects to the Microsoft store, in the background, and download an app(without pyAutoGUI). Thanks in advance.
There are no Official API's for accessing Microsoft store, A Possible solution is to use requests library or other equivalent to create a bot that can access various fields available on the website and navigate through, if you always want a certain(Same) application to be downloaded may be you can go directly to that links page and use get request for the download button as submit, this should work in theory, but again this will also keep breaking in short durations as Microsoft keeps making changes to it's website.
P.S. You might want to fool the website by adding headers to your request.
I want the user to be prompted with different options, but instead of text, I want them to be pictures, so the user would be able to click the image he/she wants.
I'm working with Microsoft bot framework in node.js.
My question is similar to this but with node instead of C#.
I have also checked prompts documentation but it look as if it weren't possible out of the box.
My bot is running on FaceBook, Perhaps it's not so important.
Currently, this is not a feature of the existing prompt system in BotBuilder SDK as of 5/8/17, but you are welcome to contribute this feature via a pull request to Microsoft/BotBuilder.
Please check out AdaptiveCards: http://adaptivecards.io/
Here is the GitHub repo: https://github.com/Microsoft/AdaptiveCards
Here is the npm package: https://www.npmjs.com/package/microsoft-adaptivecards
Adaptive Cards enable prompting users with images they can click on (just what you're looking for).
I am still trying to understand Chatbots. Currently i have already made chatbot which is integrated in skype. I have Sharepoint online where user search for FAQ. If they dont find then they ask BOT which sends request to LUIS and Qnamaker.
Qnamaker then sends response back by looking it into its database. I upload FAQ from sharepoint to Qnamaker using sharepoint workflows. But i want to write my own logic and get rid of Qnamaker.
What are ways to do it? Any good tutorials? I also wanted to know how the flow happens. For example if we dont use Qnamaker then we fire queries in sharepoint based on what user asked? I dont understand how i can fire queries in sharepoint if user makes typo then we will not get anything from sharepoint. So any tips on how to implement this without using qnamaker is highly appreciated?
The FAQ bot generator is a subset of the main Microsoft bot framework. You should do some research on the Microsoft Bot Framework. The link above takes you right to the documentation overview of the bot framework and from there you can get into developing one. They have links to a few sample projects as well as a large number of code snippets within some of the article explanations. It has a full setup guide that will walk you through the initial setup so it should be easy to get a basic echo bot running, but if you are not a programmer you should stick to the FAQ generator.
I suggest you use either node.js or c# to develop the bot since these are directly supported by the framework. I am personally using c# to build my bot from the ground up. The purpose of mine is to be used within a customer facing android/ios app that will help with questions, checking the status of different things, and even paying bills.
Just remember you will need to manually set up your cloud hosting. I host mine in azure alongside a web interface I built for it (you can build the website inside your bot if you are using c#, just replace the default.htm file in the web.config with the main page of the interface).
I need to be able to ask for the location and handle that in a waterfall dialog flow (currently I only care about Facebook Messenger)
I am wanting to ask for the location in a builder prompt, although the closest type is attachment but that is expecting a video or image response from the user.
I'd like to see a response handled by the user because the only way I can see this working is if I set a flag that I've asked that question and explicitly capture the response if it is a location response. Although, this isn't really the functionality I'm after.
Does anyone have a solution for this by chance?
Thanks,
Scott
Edit; I am looking for a solution that requires the use of Location quick replies.
For asking location, I would recommend you to use the Bing Location Control for Microsoft Bot Framework.
The Bing location control for Microsoft Bot Framework makes the process of collecting and validating the user's desired location in a conversation easy and reliable. The control is available for C# and Node.js and works consistently across all channels supported by Bot Framework.
How do I make slash commands work on my bot in Slack?
I'm using chat.postMessage to have the bot post.
For example, if I type /giphy something, it pulls in a GIF image, but if my bot posts the exact same thing it does not do anything.
It seems like you won't be able to do what you're trying to do. As far as I can tell you can't have one Slack Integration trigger another Integration. It's not hard to replicate the functionality of the /giphy Integration, though.
It seems that Slack is not supporting this feature, because commands are only interpreted when typed in the browser or in the Slack application.
You can maybe workaround this by using a web browser automation tool such as Selenium or a similar tool.
I've already sent the same answer to How do I set a reminder via the Slack API?.