Skip to content

Latest commit

 

History

History
121 lines (112 loc) · 4.14 KB

File metadata and controls

121 lines (112 loc) · 4.14 KB
title TeleFlow
hide
navigation
toc

Telegram bot framework for .NET

Starts like a script.
Grows like a system.

TeleFlow keeps the first command simple and the grown bot explicit: typed handlers, dependency injection, generated metadata, state, callbacks, long polling, webhooks, and direct Telegram Bot API access.

Program.cs
builder.Services.AddTelegramBot(options =>
{
    options.Token = token;
});

builder.Services.AddLongPolling();
builder.Services.AddTelegramHandlersFromAssembly(
    typeof(Program).Assembly);

public sealed class StartHandler
{
    [Command("start")]
    public Task Handle(
        MessageContext ctx,
        CancellationToken ct)
    {
        return ctx.Message.AnswerAsync(
            "Hello from TeleFlow.");
    }
}
</div>
NuGet packages Telegram chat Architecture Roadmap

Choose your path

One documentation site for different levels

01

Build a minimal long polling bot, add handlers, and understand the basic TeleFlow application model.

02

Walk through a support desk bot with state, callbacks, DI services, and admin actions.

03

Review architecture, deployment, versioning, diagnostics, performance, and production checklist notes.

Framework principles

Convenient does not have to mean hidden

TeleFlow uses normal C# handlers and normal .NET dependency injection. The recommended path generates handler metadata at build time and fails clearly when generated registration is missing.

Documentation map

Read in English or Russian

Getting started, fundamentals, features, transports, advanced topics, enterprise notes, and reference.

Те же разделы на русском: старт, routing, callbacks, state, transports, enterprise и roadmap.