Album Messages

send media group method tests

Using sendMediaGroup method you can send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type.

Message[] messages = await botClient.SendMediaGroupAsync(
    chatId: chatId,
    media: new IAlbumInputMedia[]
        new InputMediaPhoto(""),
        new InputMediaPhoto(""),
    cancellationToken: cancellationToken);