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

 
Alexandr Mordashov:
Hi! Maybe someone knows... Is it possible to programmatically manage (need to delete) the messages that are sent to the bot? I.e. there is a bot in Telegram. I send signals to it from MQL. If I do not have time to process them in real time, they are accumulated. Then I process a ticket and delete all signals on it manually from the bot. I have implemented the addition of hashtag (#) before the ticket in the message, so you can quickly select all messages in the bot by this hashtag and quickly delete them by hand. But still, if there is no possibility to look through charts for a couple of days, it is already difficult to delete by hand 15 messages by one ticket, for example. Is there any way to automate this? Thank you!
Yes. You can.
You can also add buttons under messages that would quickly delete them all. You can code
 
Alexandr Mordashov:
Hi! Maybe someone knows... Is it possible to programmatically manage (need to delete) the messages that are sent to the bot? I.e. there is a bot in Telegram. I send signals to it from MQL. If I do not have time to process them in real time, they are accumulated. Then I process a ticket and delete all signals on it manually from the bot. I have implemented the addition of hashtag (#) before the ticket in the message, so you can quickly select all messages in the bot by this hashtag and quickly delete them by hand. But still, if there is no possibility to look through charts for a couple of days, it is already difficult to delete by hand 15 messages by one ticket, for example. Is there any way to automate this? Thank you!

Is it?


Telegram Bot API
  • core.telegram.org
The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. To learn how to create and set up a bot, please consult our Introduction to Bots and Bot FAQ. Recent changes January 23, 2020 Supported Polls 2.0. Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the...
 
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...
 
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;

 

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?


 
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
 
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 

 
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
 

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

 
Marco vd Heijden:

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

Ok thank you !