bots

where can I find error code information for facebook bot send api?

◇◆丶佛笑我妖孽 提交于 2019-12-24 08:10:24
问题 I am sending daily messages to my bot users and I am getting error for some users which says error messages like: (#100) No matching user found or (#551) This person isn't receiving messages from you right now but Facebook doesn't have proper error documentations for these errors.. did anyone else come across these issues? 回答1: After digging a bit in the bugs platform of Facebook I found some interesting threads. For the No matching user found It appears that the end user could have delete

Launching 'safe' eval()

三世轮回 提交于 2019-12-24 07:38:00
问题 I m making a irc bot https://github.com/mouuff/MouBot I would like the bot to reply the eval() when the message starts with !math but its creating failures if the user enter something like !math exit() and stuff like that 回答1: Don't. It looks like you are trying to create a math parser. Then use a math parser, not a full-fledged I-will-run-any-code-parser. If you are using *nix, you could use a program like bc to do what you want. 回答2: Use the language services to compile it into an AST, walk

Slack: Bot name in sent messages

霸气de小男生 提交于 2019-12-24 06:43:39
问题 I created a bot named "esmeralda". When I send a message to Slack with the token generated for this esmeralda, the message just appears to be from "bot", not "esmeralda". Can I do something so that the message will be shown to be sent by "esmeralda" instead the "bot"? 回答1: I'm guessing you're using the Web API and therefore the chat.postMessage method? I'm further guessing that you're not passing as_user=true as one of your parameters. Try doing that. (If my guesses are wrong, please include

Calling back LUIS from a dialog [duplicate]

六月ゝ 毕业季﹏ 提交于 2019-12-24 04:47:17
问题 This question already has answers here : How to forward result of Prompt.Choice() to current dialog? (2 answers) Closed 2 years ago . I am developing a chatbot using Microsoft and C#. My bot basically gets the intent from LUIS and based on that either replies with a static String or forwards to a new Dialog of multiple questions. Inside the new dialog the messages sent by the user are directly handled from within the code without passing through LUIS. My Code: MainLUISDialog.cs: [LuisIntent(

Facebook Messenger Bot: Size of Video Attachment? How big can it be?

我是研究僧i 提交于 2019-12-24 04:05:10
问题 There is no indication as to the the size and format that a video attachment needs to be when being sent through Facebook Messenger, at least in the documentation here: https://developers.facebook.com/docs/messenger-platform/send-api-reference/video-attachment. Is there a limit on size? What format does it need to be in? 回答1: I was looking for this information too. I decided to try to upload files of different size to see what happen. When you try to upload files bigger than 25MB, Facebook

Facebook Messenger Bot Review

寵の児 提交于 2019-12-24 03:36:15
问题 I submitted my bot for review today. Unfortunately, Facebook doesn't seem to be able to access the bot as it doesn't reply to the test messages. However, when I promote a friend to "Tester" in the Developers app, the bot works just fine. Do you guys have any idea on why the bot doesn't answer to facebook tests ? Thanks 回答1: One thing that you should make sure before posting your Messenger Bot for review, is if your page , the bot is connected with, is published . If the Facebook Page isn't

Bot is remote but callback URL is localhost

不羁岁月 提交于 2019-12-24 00:54:28
问题 I want to debug my azure bot with botframework emulator. Whenever I try to connect, the emulator tells me the bot is remote but the callback URL is localhost. How can I change this? It also complains about my ngrok settings, but I am fairly sure that everything's allright about them, because I downloaded ngrok and pasted the correct path to the .exe in the settings. How can I fix this problem? Note that I finally get an internal server error. My Settings in the bot Framework page (as

Debugging/testing facebook messenger bot

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:52:35
问题 For testing purposes I usually put some logs or debugger into my code, probably as everybody does. To test my bot I would like to do the same but is there even a way to test/debug the messenger bot locally, or do I always have to deploy my tests? 回答1: Just fill the webhook url with the url that you use for testing. You can send something to bot, and bot can receive the messages(if you are the administrator of the app). from the received messages you could get your sender_id , you can use the

Connecting LUIS dialog to form dialog and mapping the right fields

邮差的信 提交于 2019-12-23 12:58:33
问题 I am working on a bot where you can book a flight. I'm working with the latest version of the bot framework (1.1), as suggested suggested here. You can say things like "Book me a flight from Amsterdam to Boston next monday". Now, I configured LUIS to respond with the intent "BookFlight" and in my bot I've made a LuisDialog and FormDialog like so: [LuisIntent("BookFlight")] public async Task Process(IDialogContext context, LuisResult result) { var form = new BookFlightForm(); var entities =

How to handle multiple users on Telegram bot in C#?

被刻印的时光 ゝ 提交于 2019-12-23 12:46:53
问题 I wrote a bot which asks your name and writes it on a photo and sends it to you and it works. But the problem is when there is more than one user on the bot It doesn't work and crashes and I wanted to know how to separate users entries and outputs.(like each user who connects get a separated session because now everything happens in one session and it crashes) This is my code: void bot_OnMessage(object sender, Telegram.Bot.Args.MessageEventArgs e) { KeyboardButton[] btns = new KeyboardButton