Discussion of article "How to create bots for Telegram in MQL5" - page 28

 
@Rashid Umarov Played on two Windows 7 PCs today.
 
And it doesn't work either on MT5 or MT4.... does not go request
same error
 
Gennady Mazur:
And it does not work neither on MT5, nor on MT4.... no request
Do you have Windows 7?
 
Andrey Voytenko:
@Rashid Umarov It played on two Windows 7 PCs today.

I have Windows 7 x64 build 7601 sp1

 
Andrey Voytenko:

I would like to ask those who are unable to use WebRequest to run this script and copy here the line from the Experts tab with the result. This will help to quickly identify the problem

If I have done everything correctly, I have the following results.

 
107001:

If I have done everything correctly, I have these results.

Yes, but judging by your tests, you have no problems with Telegram. We're looking for those who do.

 
It seems that requests on 10-ka work with both mt4 and mt5...
Is it really time to switch to 10-ka already?
I would not like to.
 

I know this has been asked here before but did not solved.

I get "Error: Unknown error 1001" with this basic code:

//+------------------------------------------------------------------+
//|                                               Telegram_GetMe.mq5 |
//|                        Copyright 2014, MetaQuotes Software Corp. |
//|                                              https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict

#include <Telegram.mqh>

input string InpToken="996256588:AAH2yUhFSjexpOUxxj2ZLOmRQXXItAF-B_4";//Token

CCustomBot bot;
int getme_result;
//+------------------------------------------------------------------+
//|   OnInit                                                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- set token
   bot.Token(InpToken);
//--- check token
   getme_result=bot.GetMe();
//--- run timer
   EventSetTimer(3);
   OnTimer();
//--- done
   return(INIT_SUCCEEDED);
  }
//+
.
.
.
.

Would you please tell me what should I do?

Discover new MetaTrader 5 opportunities with MQL5 community and services
Discover new MetaTrader 5 opportunities with MQL5 community and services
  • www.mql5.com
Ask questions on technical analysis, discuss trading systems and improve your MQL5 programming skills to develop your own trading strategies. Communicate and share your experience with traders from anywhere in the world, answer questions and help beginners — MQL5.community is developing along with you. MQL5 É FRAUDE HÁ MAIS DE 3 MESES COM SALDO...
 

I ask everyone who has error 1001.

Please run this script and paste here the line from the Experts tab with the result.

An example:

2020.06.05 18:06:36.033 WebRequest_Test_Script (EURUSD,H4) Build=2470 WebRequest=1001 GetLastError=5203 strData=

Additionally describe your operating system

Windows 7 7601 SP1

This will help to solve this problem.

 
Andrey Voytenko :

I ask everyone who has error 1001.

Please run this script and paste here the line from the Experts tab with the result.

An example:

2020.06.05 18:06:36.033 WebRequest_Test_Script (EURUSD,H4) Build=2470 WebRequest=1001 GetLastError=5203 strData=

Additionally describe your operating system

Windows 7 7601 SP1

This will help to solve this problem.

thank you sir
you are very kind
:)
wish you a beautiful day