hello
can someone help me understand what i doing wrong .
trying to make a indicator send me a message to my telegram account with the below code but dont work
//Set-up for telegram BOT
private DateTime dateTime;
private string botUrl = "https://api.telegram.org/bot{0}/sendMessage?chat_id={1}&text={2}";
private string apiKey = "4902146:AAHrSh0GVj_2TDeGiXiSDTr0DVKsF02y9J A";
private string chatId = "-1001278608";
private string messageText = "";
private string instrumentName = "";
private string contractMonth = "";
private string signalSeries = "";
private string CurrentDate = "";
private string dataSeriesDate = "";
private string indicatorName = "HeikenAshi CandleSticks Entry \n";
/For Telegram Bot
if (CurrentDate == dataSeriesDate && TelegramAlert == true)
{
signalSeries = indicatorName + instrumentName + " " + contractMonth + " " + vCall.ToString() + " CE";
messageText = signalSeries;
botUrl = "https://api.telegram.org/bot{0}/sendMessage?chat_id={1}&text={2}";
botUrl = String.Format(botUrl, apiKey, chatId, messageText);
WebRequest request = WebRequest.Create(botUrl);
request.GetResponse();

Comment