@model LittleShop.DTOs.BotDto @{ ViewData["Title"] = $"Edit Bot - {Model.Name}"; var settingsJson = ViewData["BotSettings"] as string ?? "{}"; }

Edit Bot Settings


@if (TempData["Error"] != null) { }
@Html.AntiForgeryToken()
Bot Information
Name
@Model.Name
Type
@Model.Type
Bot ID
@Model.Id
💰 Payment Wallets

Configure cryptocurrency wallet addresses for direct payments. These are used as fallback when payment gateway is unavailable.

@{ var wallets = new Dictionary(); try { var settings = System.Text.Json.JsonSerializer.Deserialize>(@settingsJson); if (settings != null && settings.ContainsKey("wallets")) { wallets = System.Text.Json.JsonSerializer.Deserialize>(settings["wallets"].GetRawText()) ?? new Dictionary(); } } catch { } var supportedCurrencies = new[] { new { Code = "BTC", Name = "Bitcoin", Placeholder = "bc1q... or 1... or 3..." }, new { Code = "XMR", Name = "Monero", Placeholder = "4... (primary address)" }, new { Code = "LTC", Name = "Litecoin", Placeholder = "ltc1q... or L... or M..." }, new { Code = "DOGE", Name = "Dogecoin", Placeholder = "D..." }, new { Code = "ETH", Name = "Ethereum", Placeholder = "0x..." }, new { Code = "ZEC", Name = "Zcash", Placeholder = "t1... or zs1..." }, new { Code = "DASH", Name = "Dash", Placeholder = "X..." } }; } @Html.AntiForgeryToken() @foreach (var currency in supportedCurrencies) {
}
Note: Only configured wallets will be available as payment options. Leave blank to disable direct payments for that cryptocurrency.
Bot Configuration (JSON)
Edit the JSON configuration for this bot. Be careful to maintain valid JSON format.
Configuration Template

Example configuration structure:

{
  "Telegram": {
    "BotToken": "YOUR_BOT_TOKEN",
    "WebhookUrl": "",
    "AdminChatId": ""
  },
  "Privacy": {
    "Mode": "strict",
    "RequirePGP": false,
    "EnableTor": false
  },
  "Features": {
    "EnableQRCodes": true,
    "EnableVoiceSearch": false
  },
  "Cryptocurrencies": [
    "BTC", "XMR", "USDT"
  ]
}
Actions
Cancel
@section Scripts { }