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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
For those who want to send to a private channel,
1) replace the "@" by "-" in the Telegram.mqh at line 1009 and line 1010 (see attached image),
2) in the mq4 file, you put your channel token starting by -1000xxxx like this: InpChannelName="-10000xxxx";//Channel Name
and you should get the messages after setting your channel to private.
Good luck.
Still does not work ,for inpChannelName do you still use the channel Name or chat ID ?
Still does not work ,for inpChannelName do you still use the channel Name or chat ID ?
I know this has been asked here before but did not solved.
I get "Error: Unknown error 1001" with this basic code:
Would you please tell me what should I do?
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=
Windows 7 7601 SP1
This will help to solve this problem.
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=
Windows 7 7601 SP1
This will help to solve this problem.
thank you sir
you are very kind
:)
wish you a beautiful day
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=
Windows 7 7601 SP1
This will help to solve this problem.
First of all, Thank you Andrey for the reply.
This is the output of my script named "t0.mql5":
command line "ver" command returns: Microsoft Windows [Version 10.0.18362.778]
@aboozar sobboohi Please run this request in command prompt and paste here your result. If you dont have cURL please install from here https://curl.haxx.se/windows/
curl -X POST https://api.telegram.org/bot177791741:AAEcSxsNEu8625Y2I4KAw_H7yGev9tl8uJg/getMe
@aboozar sobboohi Please run this request in command prompt and paste here your result. If you dont have cURL please install from here https://curl.haxx.se/windows/
curl -X POST https://api.telegram.org/bot177791741:AAEcSxsNEu8625Y2I4KAw_H7yGev9tl8uJg/getMe
I was not used to curl. it had no "Setup.exe". Just extracted an ran it with both your an my own tokens!
SOLVED "Error: Unknown error 1001" =======> my ISP Problem.
Now I have this outputs from cURL and Webrequest tester:
Andrey you helped me find it.
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=
Windows 7 7601 SP1
This will help to solve this problem.
I am already test your script in two system
First in windows 7 7601 SP1, running error like your error
Second in windows 10 pro 64 bit build 18363 running well no error
@GedThey MaThey
Please run this request on your Windows 7 7601 SP1 in command prompt and paste here your result. If you dont have cURL please install from here https://curl.haxx.se/windows/
curl -X POST https://api.telegram.org/bot177791741:AAEcSxsNEu8625Y2I4KAw_H7yGev9tl8uJg/getMe