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

To add comments, please log in or register
odlambda
18
odlambda  
HoangMinh891


If it is possible to increase the size, you can do it in this line of code:

 if(ChartScreenShot(chart_id,filename,1024,768,ALIGN_RIGHT))
odlambda
18
odlambda  
satrifx7 :


Well, upload the code to see it. Both mql4 and mql5.


Thank you

Massimo Petranzan
654
Massimo Petranzan  

When I use Telegram_Search_EA on MT5 I have unknown error 1001 or 1003.

On MT4 it works properly.

Jefferson Metha
1940
Jefferson Metha  
Nicholas Martins:

Thanks for sharing this code!

I just have a small issue, one of my brokers has lowercase letter on some symbols like EURUSDm, GBPUSDm, XAUUSDm...s 

Did you try Just sending without the m

or better yet this 

#include <Telegram.mqh>
input sring InpChannel;
input string InpToken;
void OnStart()
    {
        bot.Token(InpToken);
        string msg = "This currency pair/symbol is called: "+Symbol();
        bot.sendmessage(InpChannel, msg);
    }
To add comments, please log in or register