telegram

Getting signals from telegram channel and placing them in MT4 using Python

旧城冷巷雨未停 提交于 2021-01-25 07:09:51
问题 I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can also parse the messages for necessary values like TP,SL etc. Now, that I have those signals, how can I place them? I read in others answers about ZeroMQ and Python binding but I don't need to do any analysis or strategy building, I just want to place

Getting signals from telegram channel and placing them in MT4 using Python

人盡茶涼 提交于 2021-01-25 07:09:44
问题 I would like to read messages from a Telegram channel (which are essential forex signals) and place the orders in MT4 windows application. For now, I have made a python script which listens to the channels and stores messages in a database. I can also parse the messages for necessary values like TP,SL etc. Now, that I have those signals, how can I place them? I read in others answers about ZeroMQ and Python binding but I don't need to do any analysis or strategy building, I just want to place

构建个人知识体系

别说谁变了你拦得住时间么 提交于 2021-01-18 10:27:02
原文首发自我的博客: 构建个人知识体系(https://www.bmpi.dev/self/build-personal-knowledge-system/) 为何要构建个人知识体系 在这个倡导终身学习的时代,我们已经掌握的知识很快就因为技术变革而过期。所以经常学习不只是一种需要,而是一种必须。 之前我已经写过 人生游戏之路 与 如何快速学习一项新技能 两篇关于学习的文章。在这两篇文章中比较零散的阐述了关于“元学习”的概念,现在想想所谓的“元学习”不过是一套个人知识体系(或者自我提升系统)。我们每个人都具备一定的学习能力,在不自觉中掌握某种学习的套路,只是有的人掌握系统化的学习框架,能够横跨多个领域去持续学习。 学习是一种我们生来就具备的能力:我们可以在学校中学习,也可以在社会中学习;可以在书籍里学习,也可以在与人交流中学习;可以自学,也可以在游历中增长见识。 我们可以从获取信息通过学习内化成自己的知识,也可以进一步将多种知识转变为自己认知的提高,不断提高的认知加上阅历的提升,最终可能成为某种智慧。(本文只探讨从信息到知识这一环节。) 从信息到智慧的过程中,学习贯穿整个流程。构建个人知识体系的流程,在我看来就是一个 编排出适合自身的持续学习流程 ,它能帮助我在信息洪流中实现阶段性的人生目标。 构建个人知识体系流程 信息输入 每天都有大量的信息输入: 邮件订阅列表更新;

Telegram webhook: Why i get ssl3_get_server_certificate:certificate verify failed Error when i call GetWebhookInfo API command?

别等时光非礼了梦想. 提交于 2021-01-08 15:36:15
问题 Server: Win Server 2012 Web server: IIS 8.5 Project: Asp.Net MVC I bought a wildcard SSL certification for my domain and its subdomains and installed it on my server and bound to the website (in IIS). It show green secure HTTPS in browser. I used Telegram SetWebhook with my webhook URL (Something like this: https://webhook.example.com/api/WebhookAction/ ) But when i run Telegram GetWebhookInfo it return certificate verify failed error: { "ok":true, "result":{ "url":"https://webhook.example

Telegram webhook: Why i get ssl3_get_server_certificate:certificate verify failed Error when i call GetWebhookInfo API command?

纵饮孤独 提交于 2021-01-08 15:35:50
问题 Server: Win Server 2012 Web server: IIS 8.5 Project: Asp.Net MVC I bought a wildcard SSL certification for my domain and its subdomains and installed it on my server and bound to the website (in IIS). It show green secure HTTPS in browser. I used Telegram SetWebhook with my webhook URL (Something like this: https://webhook.example.com/api/WebhookAction/ ) But when i run Telegram GetWebhookInfo it return certificate verify failed error: { "ok":true, "result":{ "url":"https://webhook.example

Telegram bot only allowed to post upon events?

≯℡__Kan透↙ 提交于 2021-01-05 12:48:36
问题 It seems like Telegram bot revolves around the idea of reacting to human events (whether in channel or private messages). Is there any way to have the Telegram bot post on a channel independently? Am I really forced to use webhooks for this? I would like my bot to read blockchain operations and post these on my particular channel regardless of human events. 回答1: You can use polling (instead webhook) in the Python Telegram Bot framework updater = Updater('token', use_context=True) dp = updater

Telegram bot only allowed to post upon events?

核能气质少年 提交于 2021-01-05 12:47:48
问题 It seems like Telegram bot revolves around the idea of reacting to human events (whether in channel or private messages). Is there any way to have the Telegram bot post on a channel independently? Am I really forced to use webhooks for this? I would like my bot to read blockchain operations and post these on my particular channel regardless of human events. 回答1: You can use polling (instead webhook) in the Python Telegram Bot framework updater = Updater('token', use_context=True) dp = updater

I'm writing a telegram bot with python

杀马特。学长 韩版系。学妹 提交于 2021-01-05 12:27:38
问题 I want to write a telegram bot via Python, but it doesn't work. import telebot bot = telebot.TeleBot("my_token") @bot.message_handler(content_types=['text']) def sending(message): bot.send_message(message.chat.id, message.text) # RUN bot.polling(non_stop=True) Returns to me the following problem. AttributeError: 'TeleBot' object has no attribute 'message_handler' 回答1: This is a common issue, unfortunately. I guess you installed the lib as "pip install telebot", which leads to another package.

I'm writing a telegram bot with python

被刻印的时光 ゝ 提交于 2021-01-05 12:24:30
问题 I want to write a telegram bot via Python, but it doesn't work. import telebot bot = telebot.TeleBot("my_token") @bot.message_handler(content_types=['text']) def sending(message): bot.send_message(message.chat.id, message.text) # RUN bot.polling(non_stop=True) Returns to me the following problem. AttributeError: 'TeleBot' object has no attribute 'message_handler' 回答1: This is a common issue, unfortunately. I guess you installed the lib as "pip install telebot", which leads to another package.

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

强颜欢笑 提交于 2021-01-03 06:24:28
问题 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