Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I found a solution:
using (var stream = System.IO.File.OpenRead(Путь до файла))
{
InputOnlineFile iof = new InputOnlineFile(stream); //оставляем также
iof.FileName = "Название файла(любое)";
var send = await bot.SendDocumentAsync(chatId, iof, "Текст сообщения под файлом");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question