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

To add comments, please log in or register
Jefferson Metha
3228
Jefferson Metha  
Jefferson Metha:
So the current library, we can receive messages from Groups n directly chat with bot. 

I want to receive messages from channel to MetaTrader how is this done. 

https://www.mql5.com/en/forum/328371#comment_15438131 

I got this and will work around it to see if I can implement it  into the Telegram.mqh file

Read Public Telegram Channel Latest Messages
Read Public Telegram Channel Latest Messages
  • 2019.12.13
  • www.mql5.com
Read public Channel telegram messages Havent tested constant refreshing of messages...
Koros Jafarzadeh
3708
Koros Jafarzadeh  
Asadollah Ramezani:

Hi

As a part of an EA, I'm trying to send a screenshot to telegram bot.but it doesn't work and  I just see "sending a photo"  massage in the Telegram Bot. I do not receive anything.i'll appreciate if any one can help. the code is attached.

dear @Asadollah Ramezani

try this: InpUpdateMode = UPDATE_SLOW;

Helper69
78
Helper69  

I'm trying to us the signal ea but I'm getting {"ok":false,"error_code":400,"description":"Bad Request: chat not found"} error code on mt5 n nothing on the channel. How can I fix this?

Also how to I change Macd to send signals everytime I place a trade, modify or close?


Koros Jafarzadeh
3708
Koros Jafarzadeh  
Asadollah Ramezani:

Hi

As a part of an EA, I'm trying to send a screenshot to telegram bot.but it doesn't work and  I just see "sending a photo"  massage in the Telegram Bot. I do not receive anything.i'll appreciate if any one can help. the code is attached.

Dear @Asadollah Ramezani

I had this problem too, I always get this error: "Screenshot file not created", I solved it, Just put ChartRedraw(chart_id) after ChartScreenShot command.

good luck bro
Jefferson Metha
3228
Jefferson Metha  
Koros Jafarzadeh:

Dear @Asadollah Ramezani

I had this problem too, I always get this error: "Screenshot file not created", I solved it, Just put ChartRedraw(chart_id) after ChartScreenShot command.

good luck bro

why not send an example 

Jefferson Metha
3228
Jefferson Metha  
thegosutrader:


Could someone please help me to finish to write this ? Actually I just want to replicate the MT4 trades journal logs by sending a message to my Telegram channel like the attached file.



Please refer to MACD example in the Article Files
Marco vd Heijden
Moderator
13105
Marco vd Heijden  

It means start simple with the MACD example that comes in MetaTrader. 

thegosutrader
13
thegosutrader  
Marco vd Heijden:

It means start simple with the MACD example that comes in MetaTrader. 

Ok thank you !
thegosutrader
13
thegosutrader  

Hello,


My bot is sending the same message multiple times, any idea where is the issue? here is the code :<Link removed>


Thank you

Keith Watford
Moderator
23576
Keith Watford  
thegosutrader:

Hello,


My bot is sending the same message multiple times, any idea where is the issue? here is the code :<Link removed>


Thank you

Please attach the code here instead of linking to an external website.

To add comments, please log in or register