Download MetaTrader 5

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

To add comments, please log in or register
Eugenio Bravetti
5159
Eugenio Bravetti  
Andrey Voytenko:

Please fix the line 117:

Hi Andrey

I have download your example code from here https://www.mql5.com/en/articles/2355

I followed your istructions that you have explain in your article....I have create my bot and my chanel and I have connect my bot as adiministrator of chanel

I have add the "https://api.telegram.org" and "https://search.mql5.com" link in to Expert Advisor tab in the Options of platform

When I try to load your example codes (all), I recive always the "Error: unknow error 1001"

You can help me please?

Thanks

Last news

I have tryed to load the same example code in mt4.....on mt4 the error 1001 not generated......the problem is only on mt5

I have this versions of platforms

mt4 build 1121 (26 apr 2018)

mt5 build 1146 ((11 Jun 2018)

How to create bots for Telegram in MQL5
How to create bots for Telegram in MQL5
  • 2016.06.27
  • Andrey Voytenko
  • www.mql5.com
During the F8 conference held in San Francisco on 12th of April in 2016, Facebook announced the integration of API for bots into the Messenger. The same day a major update for the Telegram Bot Platform was released. Version 2.0 has pleasantly surprised with its functionality. It seems that bots that used to be popular in the ICQ era are now...
Andrey Voytenko
26741
Andrey Voytenko  
Eugenio Bravetti:

mt5 build 1146 ((11 Jun 2018)

I think you use an old build. Please upgrade up to 1845 (08 Jun 2018) and try again.

Eugenio Bravetti
5159
Eugenio Bravetti  
Andrey Voytenko:

I think you use an old build. Please upgrade up to 1845 (08 Jun 2018) and try again.

sorry I was wrong to write

mt5 build is 1846 (11 jun 2018)

PS.....How I writed in my previous post, on MT4 the connection it's ok but when I load "Telegram_Signal_EA" and new signal is generated, when the programm send message to the chanel, the programm return

"2018.06.13 18:57:03.688 Telegram_Signal_EA EURUSD.,M1: {"ok":false,"error_code":400,"description":"Bad Request: chat not found"}"

The steps that I followed are:

1) I have create my bot

2) I have create my chanel

3) I have add my bot as administrator of chanel

It's ok?

Thanks

Andrey Voytenko
26741
Andrey Voytenko  

Eugenio Bravetti:

It's ok?

ok. But if you are working with a private channel, use the Channel ID, not the Channel Name.

Eugenio Bravetti
5159
Eugenio Bravetti  
Andrey Voytenko:

ok. But if you are working with a private channel, use the Channel ID, not the Channel Name.

Hi Andrey

Thanks for your availability

only one question for you....

I have need to send from MQL programm a file or simple information to other MQL programms via internet....(the platforms are in different locations)

With Telegram it's possible for you?

Do you have any suggestions?

Many thanks

Eugenio

Andrey Voytenko
26741
Andrey Voytenko  

Eugenio Bravetti:

With Telegram it's possible for you?

I dont know how to exchange files between Telegram Bots.

Eugenio Bravetti
5159
Eugenio Bravetti  
Andrey Voytenko:

I dont know how to exchange files between Telegram Bots.

Andrey, I confirm you that your code work well on MT4 but not on MT5

The error returned on MT5 are:

2018.06.15 15:12:10.961 Telegram_Signal_EA (EURUSD,M30) CCustomBot::PostRequest res = 1001

2018.06.15 15:12:10.961 Telegram_Signal_EA (EURUSD,M30) CCustomBot::PostRequest _LastError = 5203

2018.06.15 15:12:10.961 Telegram_Signal_EA (EURUSD,M30) Error: Unknown error 1001

thanks

Genio


To add comments, please log in or register