public static async Task sendMessage() { }
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
public static async Tasks Method
Collapse
X
-
Hello dv926844,
Thank you for your post and welcome to the Support Forum!
Can you clarify a few points here? Are you performing this in NinjaTrader 7 or 8? And what namespace is this defined in?
Can you attach a screenshot of the compile with the message column expanded?
To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
Click here for instructions: http://windows.microsoft.com/en-us/w...#1TC=windows-8
Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
Click here for detailed instruction: http://take-a-screenshot.org/
I look forward to your response.
-
Code:public static async Task sendMessage(string destID, string text) { try { var bot = new Telegram.Bot.TelegramBotClient("302755276:AAHsV9EDFMwe8125hH-UK-WmXuTDeLZMYks"); await bot.SendTextMessageAsync(destID, text); } catch (Exception e) { } }
Comment
-
Hello dv926844,
Thank you for your response.
May we test the full code? If you prefer you can send the file to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H' in the subject line and a reference to this thread in the body of the email.
You can attach your indicator to your response by going to File > Utilities > Export NinjaScript > Export selected source files > select your Indicator > select the right arrow > Export. The file will be located under (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript.
I look forward to your response.
Comment
-
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
238 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
4 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM |
Comment