Class TelegramConnectionFactory

Assembly: redb.Route.Telegram.dll

Named connection factory for Telegram. Register it in the route registry and reference it by
name from the endpoint URI (connectionFactory=my-bot) so the bot token — a full account
credential — never has to appear in the URI, and therefore can never reach logs, telemetry,
or the Tsak dashboard.

Example:
context.AddToRegistry("support-bot", new TelegramConnectionFactory
{
Token = Environment.GetEnvironmentVariable("TELEGRAM_TOKEN")!
});

// route carries no token at all:
r.From("telegram://receive?connectionFactory=support-bot")

public sealed class TelegramConnectionFactory

Inheritance

Object→TelegramConnectionFactory

Properties

SendTimeoutSeconds

Per-send timeout in seconds for producer calls (default 120, range 1–600).

public int SendTimeoutSeconds { get; set; }

Token

Bot token from . Supports ${env:NAME} expressions.

public string Token { get; set; }