I want to send an Album with a text message and this is my code in C#:
private void CInPrbdg_Click(object sender, RoutedEventArgs e)
{
List<FileStream> streams = new List<FileStream>
{
System.IO.File.OpenRead(imgpath1),
System.IO.File.OpenRead(imgpath2),
};
List<InputMediaPhoto> media = new List<InputMediaPhoto>();
foreach(var stream in streams)
{
media.Add(new InputMediaPhoto(new InputMedia(stream, stream.Name))
{
Caption = txt1,
ParseMode = ParseMode.Markdown
});
}
await Vbot.SendMediaGroupAsync(media, chatid);
}
This code shows that the caption will only show like this: Image with Caption in Telegram but i want it to be like this: Album with Text Message. Thank you.