too many changes
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MemeVault.Infrastructure.Options;
|
||||
|
||||
public sealed class S3Options
|
||||
{
|
||||
public const string Section = "S3";
|
||||
|
||||
/// <summary>
|
||||
/// S3/MinIO endpoint — used both by the .NET SDK for uploads/downloads
|
||||
/// and as the base URL in generated presigned links.
|
||||
/// Must be reachable both from the server and from the browser.
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string ServiceUrl { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string AccessKey { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string SecretKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Bucket where cached Telegram files are stored.</summary>
|
||||
[Required]
|
||||
public string BucketName { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MemeVault.Infrastructure.Options;
|
||||
|
||||
/// <summary>
|
||||
/// Options for calling the Telegram Bot API from Infrastructure services.
|
||||
/// Reads from the same "Telegram" config section as MemeVault.Api.
|
||||
/// </summary>
|
||||
public sealed class TelegramApiOptions
|
||||
{
|
||||
public const string Section = "Telegram";
|
||||
|
||||
[Required]
|
||||
public string BotToken { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Custom Telegram Bot API server base URL (e.g. a local server).
|
||||
/// Null means the official https://api.telegram.org — the library handles the default.
|
||||
/// </summary>
|
||||
public string? ApiBaseUrl { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user