Class TelegramConnectionFactory
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
Properties
SendTimeoutSeconds
Per-send timeout in seconds for producer calls (default 120, range 1–600).
public int SendTimeoutSeconds { get; set; }