Please i am trying to write out a code that will send screenshot of mt4 to telegram.

 

i have battled with the below code to send a screenshot and a message on the fulfillment of certain conditions from mt4 to telegram.

i was able to send just a message but the screenshot has not worked as i keep having numerous and countless errors. some errors INVALID ARRAY ACCESS, STRUCTURE TYPE etc.

I have separated THE SENDPHOTO FUNCTION part which i am having trouble with. Please i need help to fix this part.

thank you as i hope to you helping me out with this.

 

Please don't post randomly in any section. Your question is not related to the section you posted.

MT4/mql4 has it's own section on the forum.

I will move your topic to the correct section later, please don't create another topic.

 

I removed your file because it contained your BOT_TOKEN.

Please do not post files with your BOT_TOKEN as it poses a security risk.

Here is the Telegram mqh file that you can use to implement your idea.

Files:
Telegram.mqh  31 kb