'SendPhoto' - no one of the overloads can be applied to the function call Telegram_Bot_EA.mq5 117 24

To add comments, please log in or register
siljo
52
siljo  

Hi

I try to test Telegram example from article:

https://www.mql5.com/en/articles/2355

an get error message:

"'SendPhoto' - no one of the overloads can be applied to the function call Telegram_Bot_EA.mq5 117 24"


where is the problem?




How to create bots for Telegram in MQL5
How to create bots for Telegram in MQL5
  • 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...
Marco vd Heijden
Moderator
8419
Marco vd Heijden  

The problem is at 117 24 or at least there is where it runs stuck.

The function is at 61.

siljo
52
siljo  
Marco vd Heijden:

The problem is at 117 24 or at least there is where it runs stuck.

The function is at 61.

function at 61?

Yes problem is at .SendPhoto:

            result=bot.SendPhoto(_chat_id,filename,screen_id,_symbol+"_"+StringSubstr(EnumToString(_period),7));


In article 2355 is source code attached and I don't why original code is with errors....... 

I think problem is commented Nguyen Van Tuan comment at point 2.   ...?! Or...?

Marco vd Heijden
Moderator
8419
Marco vd Heijden  

The function call is at line 117.

The function is at line 61.

To add comments, please log in or register