telegram

Python Telegram Bot how to wait for user answer to a question And Return It

我怕爱的太早我们不能终老 提交于 2021-01-03 06:24:12
问题 Context: I am using PyTelegramBotAPi or Python Telegram Bot I have a code I am running when a user starts the conversation. When the user starts the conversation I need to send him the first picture and a question if He saw something in the picture, the function needs to wait for the user input and return whether he saw it or not. After that, I will need to keep sending the picture in a loop and wait for the answer and run a bisection algorithm on it. What I have tried so far: I tried to use

Python Telegram Bot how to wait for user answer to a question And Return It

╄→гoц情女王★ 提交于 2021-01-03 06:23:23
问题 Context: I am using PyTelegramBotAPi or Python Telegram Bot I have a code I am running when a user starts the conversation. When the user starts the conversation I need to send him the first picture and a question if He saw something in the picture, the function needs to wait for the user input and return whether he saw it or not. After that, I will need to keep sending the picture in a loop and wait for the answer and run a bisection algorithm on it. What I have tried so far: I tried to use

烤仔喊你写作业 | 谁会得到Conflux精美周边?

随声附和 提交于 2021-01-02 16:39:18
下面请看正确答案 恭喜以下几位小伙伴,你们距离Conflux精美周边由又近了一步。 那么究竟谁才是最终幸运鹅呢? 本着公平、公开、公正的原则,烤仔在网上搜索了一个抽奖小程序,将抽奖过程公示如下: 恭喜 徐冰 和 ray_lanlan !你们收获了烤仔的仰慕和嫉妒! 请二位幸运鹅将 联系方式 和 收件地址 以 后台留言 的方式发给烤仔,烤仔会尽快安排快递哒~ 下一次抽奖的题目是什么呢?让我们期待吧~ (向上滑动查看内容) 了解最新动态 官方网站 www.conflux-chain.org/zh/ 微博关注@Conflux中文社区 weibo.com/confluxchain Twitter关注@ConfluxChain twitter.com/ConfluxChain Reddit www.reddit.com/user/ConfluxChain Telegram t.me/Conflux_English GitHub开源交流 github.com/conflux-chain Medium medium.com/@Confluxchain 知乎关注@Conflux中文社区 www.zhihu.com/org/confluxzhong-wen-she-qu/activities 我就知道你“在看” 本文分享自微信公众号 - Conflux中文社区(Conflux-Chain)。

npm ELIFECYCLE error exit status 1

て烟熏妆下的殇ゞ 提交于 2020-12-26 07:47:11
问题 So, I've been trying to setup a telegram bot using now but I'm getting the ELIFECYCLE error when typing npm start . I have both nodejs and npm at their latest version. The script does work because when I run node index.js works just fine, the problem only occurs when I try npm start or when I try to deploy it with now. I'm running this on fedora up to date So here's the error when I try to run npm start [root@localhost my-telegram-bot]# npm start > telegram-bot@1.0.0 start /home/fedora

npm ELIFECYCLE error exit status 1

我怕爱的太早我们不能终老 提交于 2020-12-26 07:47:04
问题 So, I've been trying to setup a telegram bot using now but I'm getting the ELIFECYCLE error when typing npm start . I have both nodejs and npm at their latest version. The script does work because when I run node index.js works just fine, the problem only occurs when I try npm start or when I try to deploy it with now. I'm running this on fedora up to date So here's the error when I try to run npm start [root@localhost my-telegram-bot]# npm start > telegram-bot@1.0.0 start /home/fedora

“看门狗”团伙远控木马投毒计,360安全大脑极速斩杀输出体系防御力

跟風遠走 提交于 2020-12-14 21:21:16
近日,360安全大脑独家捕获“看门狗”团伙最新动向,其正通过伪造某聊天软件官网以及钓鱼邮件等方式,对特定目标人群精准投毒祸乱网络。该组织命名来源于攻击样本包含的中文PDB路径,也有安全厂商称其为“金眼狗”组织。 360 安全大脑基于持续跟踪数据,并对攻击样本进行梳理分析后发现,“看门狗”团伙长期通过申请正规软件开发商签名,进而利用白加黑方式执行远控木马;钓鱼邮件定向投毒,并通过漏洞利用启动远控木马;伪装正规聊天工具捆绑远控模块等三大手段横行网络。 手段1:以假乱真,冒用签名投放远控木马 一直以来,冒用软件开发厂商签名都是“看门狗”团伙的惯用伎俩。从360安全大脑长期监测数据来看,9月下旬至今已追踪到该团伙冒用的十余个数字证书,具体如下: 与此同时,360安全大脑最新数据显示,“看门狗”团伙除申请了与原厂商相同的签名外,还申请了部分同名但大小写不同的高迷惑性签名,以便于测试安全软件反应,为冒用签名投放远控木马试水。 手段2:迷惑性诱饵,钓鱼邮件扩散远控木马 冒用签名之外,360安全大脑数据显示,钓鱼邮件是“看门狗”团伙的第二大惯用伎俩。从360安全大脑捕获的钓鱼邮件攻击样本来看,该团伙通过钓鱼邮件,将伪装成技术资料等文档的恶意程序,投递至目标用户邮箱,以诱骗点击下载。 一旦触发,恶意程序会利用muse音乐播放器栈溢出漏洞执行后续shellcode,并经过几轮内存加载后

Get TELEGRAM Channel/Group ID

烂漫一生 提交于 2020-12-04 03:45:59
问题 Let's say, I've joined TELEGRAM group... I am just a typical member of GROUP (and thus, cant use any bots there.. ?) so, I am unable to find out the way, how to get GROUP ID. 回答1: via code: If you are a member of a group, you should receive updates from that group when ever there is any activity from that group. The updates will contain a chats list-element from which you can get a Channel which has the following relevant fields: id: group_id, title: "the_group_title", username: "group

用 Recast.AI 创建一个聊天机器人

a 夏天 提交于 2020-12-03 11:01:02
据 Gartner 2018 年 2 月的报告,“到 2020 年,25% 的客户服务和支持业务将在参与渠道中整合虚拟客户助理(VCA)或聊天机器人技术,而 2017 年只有不到 2%。”鉴于此,读者会发现本教程对理解开源的 Recast.AI 机器人创建平台的工作原理很有帮助。 聊天机器人,包括基于语音的以及其他技术的,已经实际使用了有一阵子了。从让用户参与谋杀解密游戏,到帮助完成房地产交易和医疗诊断,聊天机器人已经跨越了多个领域。 有许多平台可以让用户创建和部署机器人。Recast.AI(在被 SAP 收购之后现在是 SAP Conversational AI)是其中的先行者。 酷炫的界面、协作性以及它所提供的分析工具,让它成为流行的选择。 正如 Recast 官方网站说的,“它是一个创建、训练、部署和监控智能机器人的终极协作平台。” 创建一个基础的机器人 让我们来看看如何在 Recast 创建一个基础的机器人。 在 https://cai.tools.sap 创建一个账户。注册可以使用电子邮箱或者 Github 账户。 在你登录之后,你会进入仪表板。点击右上角 “+” 新建机器人图标新建一个机器人。 在下一个界面,你会看到一系列可选的预定义技能。暂时选择问候Greetings”(图 1)。这个机器人已经经过训练,能够理解基本的问候。 给机器人提供一个名字。目前来说

部署zabbix 4.0 + grafana

北城以北 提交于 2020-11-25 16:33:05
不完整,仅供参考 Zabbix+grafana 监控部署 基本环境 系统: CentOS Linux release 7.3.1611 Zabbix—server: Zabbix_agent: Nginx 版本号: 1.62 Mysql 版本号: 5.7.27 Zabbix 版本号: 4.0 Grafana 版本号: 6.0 1: 基础环境配置(关闭防火墙和selinux) systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config 2: 安装zabbix 2.1 部署安装nginx yum -y install gcc pcre-devel openssl-devel wget wget http://nginx.org/download/nginx-1.6.2.tar.gz tar -xf nginx-1.6.2.tar.gz cd nginx-1.6.2/ ./configure --user=nginx --group=nginx --prefix=/opt/nginx/ --with-file-aio --with-http_addition_module -