public static async Task GetPresent(MessageEventArgs e) { await Bot.SendTextMessageAsync( e.Message.Chat.Id, "СЕКТРААААР САААС НАА БАААРАБААНЕ!! ГЛАВНЫЙ ПРИЗ ЗИЗ, В СТУУДИЮ"); Thread.Sleep(2500); using (var fileStream = new FileStream(brother, FileMode.Open, FileAccess.Read, FileShare.Read)) { await Bot.SendPhotoAsync(e.Message.Chat.Id, fileStream, "БРАААТИИШКААА"); } Thread.Sleep(1000); await Bot.SendTextMessageAsync( e.Message.Chat.Id, "КАНЕЦ"); }
public async static Task Snuff(MessageEventArgs e) { Thread.Sleep(1000); using (var fileStream = new FileStream(cocs, FileMode.Open, FileAccess.Read, FileShare.Read)) { await Bot.SendPhotoAsync(e.Message.Chat.Id, fileStream); } Thread.Sleep(1000); using (var fileStream = new FileStream(dollar, FileMode.Open, FileAccess.Read, FileShare.Read)) { await Bot.SendPhotoAsync(e.Message.Chat.Id, fileStream); } await Bot.SendTextMessageAsync(e.Message.Chat.Id, "ПРОЖЕБАНА!"); }