Answer the question
In order to leave comments, you need to log in
C# Telegram API How to send a post with multiple pictures and text?
Hello, I need to send a post with several pictures and text.
How do I:
public async void NewPost(Post post)
{
botClient = new TelegramBotClient(APIKEY");
Message[] messages = await botClient.SendMediaGroupAsync(
chatId: "@dxfnxcvn",
inputMedia: post.Photo.Select(x => new InputMediaPhoto(x) { Caption = post.Msg})
);
}
post.Photo
Caption = post.Msg
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question