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

 
sportoman #:

Indeed, I removed the path, left the file name and started sending from MQL4\Files. Thank you.

One more question - how to pass HTML text formatting to the Telegram bot?

You write the text in html format and pass it to the telegram bot.

 
sportoman #:

Another question - how do I pass HTML text formatting to the telegram bot?

The description of Telegram API has it all.

 

Thank you very much for the article. It was written so long ago and everything works, and there are detailed explanations here - useful.
I have a question, not quite on the topic. Is it possible to read messages from a telegram channel (chat) by any bot? Or maybe how to send data from MT directly to Google tables - bypassing telegram and channels.

The global task is to send trade results from the private chat to Google tables, but from MQL it will not be possible (as far as I understand). I have looked all over the internet, there is only the reverse task - transferring data from tables to chats. And from chats -> to tables - no information.

 
qadexys private chat to Google tables, but from MQL it will not be possible (as far as I understand). I have looked all over the internet, there is only the reverse task - transferring data from tables to chats. And from chats -> to tables - no information.

You can create a .csv file and upload it to google drive....

I think you can do everything...

 
Sumi Kaidi #:

Hi admin & everyone!

How to get new chat from Chanel (added bot)?

Thank you!

Read from page 1 to 24. This question has been asked several times
 

Using Channel Name I can send only to the public channel.

But I can't send it to myself in private(Error: Bad Request). It works only by Channel ID. Is this how it should work, or am I doing something wrong?

 
Andrey Kaunov public channel.

But I can't send it to myself in private(Error: Bad Request). It works only by Channel ID. Is this how it should work, or am I doing something wrong?

It works for me, in the channel there is the channel name and ID, and like yourself, or rather to your bot only the ID. It is not described how to send to yourself or to someone in a private message.

 
Andrey Kaunov public channel.

But I can't send it to myself in private(Error: Bad Request). It works only by Channel ID. Is this how it should work, or am I doing something wrong?


Valeriy Yastremskiy #:

It works for me, in the channel there is the channel name and ID, but like myself, or rather to my bot only the ID. It is not described how to send to yourself or to someone in a private message.


Valery, read my post more carefully.

I do not write that it is NOT sent to a private message. I write that it is NOT sent to a personal account by name!

 
Andrey Kaunov #:



Valery, read my post more carefully.

I did not write that it is NOT sent to a private message. I am writing that it is NOT sent to a private person by name!

Yes, I don't understand, I don't know, it is not sent to bot by name either, only by ID. And how do you send to yourself? Or rather, how do you get your id in the cart? I can only send to the bot.

Defines only come to mind or the API of the cart.

 
Valeriy Yastremskiy #:

Yes, I don't get it, I don't know, I can't send to bot by name either, only by ID. How do you send it to yourself? Or rather, how do you get your id in the cart? I only get it to the bot.

Defines only come to mind or the API of the cart.

The ideology of bots is such that a bot can not start a conversation itself, and therefore can not write something to you.

A bot in private can only reply....