bot

Bot Framework openUrl not working for suggested action on messenger

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am creating facebook bot using Bot Builder Node.js sdk and I am trying to create suggested action, which would navigate users to web page. I know, that facebook has limitation, that it redirects only to https endpoints, but as the the page I am redirecting to is https, this is clearly not a problem. Here is my code: var msg = new builder.Message(session) .text("User message here") .suggestedActions( builder.SuggestedActions.create( session, [ builder.CardAction.imBack(session, "command1", "Command1"), builder.CardAction.imBack(session,

Telegram bot weird error : Bad Request: wrong file identifier/HTTP URL specified

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am sending message to telegram channel using bot. With using webhook method. I'm sending file_id via the link. I got the file_id from a channel post. For some files like GIF & video format (MP4), when i use this code: $url = 'https://api.telegram.org/bot'.token.'/sendVideo?chat_id='.uid."&video=".$file."&caption=" .urlencode($caption); file_get_contents($url); i get such this error : {"ok":false,"error_code":400,"description":"Bad Request: wrong file identifier/HTTP URL specified"} I really don't know why i get this, It's like this is

python自动化

允我心安 提交于 2019-12-03 07:48:48
人生苦短,我用python 越学python,越觉得python好玩,特别是自动化和人工智能 1.微信登录和退出 1 #!/usr/bin/env python3 2 # coding:utf-8 3 # 2019/11/2 1:53 4 #lanxing 5 #微信登录和登出 6 from wxpy import * 7 8 #初始化机器人,扫码登录 9 #cache_path保持登录,Bot初始化中可以加入参数:console_qr是否在可控制台显示二维码 10 bot = Bot(cache_path=True) 11 print("登录成功") 12 13 bot.logout() 14 print("成功退出登录") 2.阻塞进程,保持登录状态 import wxpy bot = wxpy.Bot(cache_path=True) bot.join() 3.找到自己微信里面的所有朋友的个人信息,省份,城市,昵称等信息 1 #!/usr/bin/env python3 2 # coding:utf-8 3 # 2019/11/2 1:53 4 #lanxing 5 from wxpy import * 6 7 bot = Bot(cache_path=True,console_qr=False) 8 #启用 puid 属性 ,并指定puid 所需的映射数据保存/载入路径 9

XCode bot error: Early unexpected exit, operation never finished bootstrapping -

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a project written in swift, and i have the main target and two test targets, one for unit testing using quick framework and it has 3 KIF tests. the other target has the XCUItests. so whenever i run XCode bot integration with our XCode CI Server, i get the following error: Bot Issue for Acceptance Bot (error) Integration #63 of Acceptance Bot Open in Xcode: xcbot://iosci/botID/1229919cecfcd510f090e37aed014a23/integrationID/16a3709d3ae008a68a65ff2fe9bb5a7b Assertion: Test target MyUITests encountered an error (Early unexpected exit,

How can I get my bot to ignore conversation until it is addressed directly?

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to add my bot to a Slack channel. But I want it to ignore conversation until it is addressed directly, e.g.: me: hi! me: hi! me: @bot hi! bot: why hello there! In Microsoft Bot Framework v1, there was an option: "Listen to all messages". I don't see that option in v3. Is there a simple way to do this (i.e. without analyzing every utterance to see whether the bot was addressed)? I'm using node.js botbuilder 3.1. 回答1: While checking the activity text is certainly a valid option, I would instead use the Mentions capabilities provided by

Xcode bot install link request time out

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been able to get my Xcode bot to integrate successfully and create a .ipa file. I have an ssl certificate installed on my Xcode server and I can connect to the xcode/bots url fine. When I connect to the url through an iPad, I am first prompted to install a certificate but it says that it's not verified in red (see attachment) After I install the profile on the device, the xcode/bots page has a green "install" button. Once I click the "install" button it never loads the app and after several minutes I get a "Cannot connect to xx.yy.com

.NET HttpListener: when registering both HTTP & HTTPS I get “conflicts with an existing registration on the machine”

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use .NET HttpListener in a C# project. When I register my prefix "http://*:8080/" it does not seem to work for HTTPS urls (i.e. doesn't pick them up). When I try the following code to register both the HTTP and HTTPS versions of the prefix however I get the error: "Failed to listen on prefix 'https:// :8080/' because it conflicts with an existing registration on the machine."* How can I get my prefix working for both HTTP & HTTPS? private HttpListener _listener; // Create prefixes var prefixes = new List<string>(); prefixes.Add

Telegram Bot API Webhooks Self-signed Certificate issue

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on a Ruby language server to manage multiple Telegram Bots via setwebhooks BTW, I'll delivery the server as opensource at BOTServer PROBLEM I have troubles receiving webhook updates from Telegram Bot API Server. I have set a webhook token (Telegram reply "success") but I do not receive any update on the succesfully configured webhook. I think the problem could be around self-signed Certificate mysteries. See old reddit question and answers. I have similar problem and I fair the point is in some "misunderstanding" between Telegram

How to avoid “Sorry, my bot code is having an issue” in Microsoft Bot Framework

匿名 (未验证) 提交于 2019-12-03 01:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a bot that runs on Azure + Bot Framework + LUIS (via LuisDialog). If the user happens to send two messages in a quick succession (before the bot has a chance to answer), they see this error message on their Facebook Messenger or web embed: Sorry, my bot code is having an issue. When debugging through bot channel emulator, I see that the error is this: "text": "Error: Response status code does not indicate success: 429 (Too Many Requests). at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime

Bot Framework Emulator (v4) not working - POST 202

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently created a chatbot using Microsoft Azure's Cognitive Services and Bot Framework, using as the main tool QnA Maker. After some weeks developing and even publishing the bot, I decided to go to the next steps and make some changes and optimizations that requires the bot running locally. I managed to download the source code from Azure's portal as a .zip file, using as IDE Visual Studio 2017 and using as my test tool Bot Framework Emulator (V4). After some time (and a lot of issues, solved in Azure Bot Framework Emulator Error - System