alpha
This commit is contained in:
@@ -23,8 +23,8 @@ namespace SignalsTest
|
||||
await botClient.SendTextMessageAsync(chat, text);
|
||||
}
|
||||
|
||||
public async Task SendLastChart(string chat = "@doralockscryptosignals"){
|
||||
FileStream fsSource = new FileStream("/var/www/html/test.png", FileMode.Open, FileAccess.Read);
|
||||
public async Task SendLastChart(string chat = "@doralockscryptosignals", string filename="test"){
|
||||
FileStream fsSource = new FileStream($"{filename}.png", FileMode.Open, FileAccess.Read);
|
||||
InputFile photo = InputFile.FromStream(fsSource);
|
||||
await botClient.SendPhotoAsync(chat, photo);
|
||||
Console.WriteLine("Photo sent success");
|
||||
|
||||
Reference in New Issue
Block a user