This commit is contained in:
2025-01-05 18:58:43 +05:30
parent 5cd509161b
commit e1c55dbce6
68 changed files with 2253 additions and 212 deletions

View File

@@ -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");