Document and Animation Messages

Send documents

sendDocument method tests

Use sendDocument method to send general files.

await bot.SendDocumentAsync(chatId, "https://telegrambots.github.io/book/docs/photo-ara.jpg",
    caption: "<b>Ara bird</b>. <i>Source</i>: <a href=\"https://pixabay.com\">Pixabay</a>", parseMode: ParseMode.Html);

Send animations

sendAnimation method tests

Use sendAnimation method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).

await bot.SendAnimationAsync(chatId, "https://telegrambots.github.io/book/docs/video-waves.mp4",
    caption: "Waves");