@model LittleShop.DTOs.DiscoveryWizardViewModel @{ ViewData["Title"] = "Discover Remote TeleBot"; }

Discover Remote TeleBot

@if (!string.IsNullOrEmpty(Model.ErrorMessage)) { } @if (!string.IsNullOrEmpty(Model.SuccessMessage)) { } @if (Model.CurrentStep == 1) {
Step 1: Discover TeleBot Instance

Enter the IP address and port of the TeleBot instance you want to connect. The TeleBot must be running and configured with the same discovery secret.

@Html.AntiForgeryToken()
Use telebot for same-server Docker deployments, or the public IP/hostname for remote servers
Default: 5010
Cancel
} else if (Model.CurrentStep == 2) {
TeleBot Discovered!
Instance ID: @Model.ProbeResponse?.InstanceId
Name: @Model.ProbeResponse?.Name
Version: @Model.ProbeResponse?.Version
Status: @Model.ProbeResponse?.Status
Address: @Model.IpAddress:@Model.Port
Step 2: Register Bot
@Html.AntiForgeryToken()
A friendly name to identify this bot
Bot conversation style
Back
} else if (Model.CurrentStep == 3) {
Bot Registered - API Key
@if (!string.IsNullOrEmpty(Model.BotKey)) {
Save this Bot Key securely! It won't be shown again.
}
Step 3: Configure Telegram Token

Now enter the Telegram bot token from BotFather to activate this bot.

@Html.AntiForgeryToken()
Get this from @@BotFather on Telegram
Skip (configure later)
}
Wizard Progress
  • 1 ? "text-success" : "text-muted")"> 1 ? "check" : "circle")"> 1. Discover TeleBot
  • 2 ? "text-success" : "text-muted")"> 2 ? "check" : "circle")"> 2. Register Bot
  • 3. Configure Telegram
Requirements
  • TeleBot must be running
  • Same discovery secret on both sides
  • Network connectivity to TeleBot
  • Valid Telegram bot token
@if (Model.CurrentStep >= 2) {
Connection Info

Address: @Model.IpAddress

Port: @Model.Port

}
@section Scripts { }