From 06b3a41a31097126d9001351f81bf9ff10a1d147 Mon Sep 17 00:00:00 2001 From: Rikitav Date: Thu, 24 Jul 2025 23:23:07 +0400 Subject: [PATCH] forgot to tweak readme! --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 0a1a784..2a14da3 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ -# Telegram.Reactive +# Telegrator -![Telegram.Reactive Banner](https://github.com/Rikitav/Telegram.Reactive/blob/master/resources%2Ftgr-banner.png) +![Telegrator Banner](https://github.com/Rikitav/Telegrator/blob/master/resources%2Ftgr-banner.png) > **A modern reactive framework for Telegram bots in C# with aspect-oriented design, mediator-based dispatching, and flexible architecture.** --- -## πŸš€ About Telegram.Reactive +## πŸš€ About Telegrator -Telegram.Reactive is a next-generation framework for building Telegram bots in C#, inspired by AOP (Aspect-Oriented Programming) and the mediator pattern. It enables decentralized, easily extensible, and maintainable bot logic without traditional state machines or monolithic handlers. +Telegrator is a next-generation framework for building Telegram bots in C#, inspired by AOP (Aspect-Oriented Programming) and the mediator pattern. It enables decentralized, easily extensible, and maintainable bot logic without traditional state machines or monolithic handlers. --- @@ -40,14 +40,14 @@ Telegram.Reactive is a next-generation framework for building Telegram bots in C ```shell # Coming soon: will be available via NuGet -# dotnet add package Telegram.Reactive +# dotnet add package Telegrator ``` ### 2. Minimal Bot Example ```csharp -using Telegram.Reactive.Handlers; -using Telegram.Reactive.Annotations; +using Telegrator.Handlers; +using Telegrator.Annotations; [MessageHandler] public class HelloHandler : MessageHandler @@ -68,8 +68,8 @@ bot.StartReceiving(); ```csharp using Telegram.Bot.Types.Enums; -using Telegram.Reactive.Handlers; -using Telegram.Reactive.Annotations; +using Telegrator.Handlers; +using Telegrator.Annotations; [CommandHandler, CommandAllias("start", "hello"), ChatType(ChatType.Private)] public class StartCommandHandler : CommandHandler @@ -87,8 +87,8 @@ bot.Handlers.AddHandler(); ### 4. State Management Example ```csharp -using Telegram.Reactive.Handlers; -using Telegram.Reactive.Annotations; +using Telegrator.Handlers; +using Telegrator.Annotations; [CommandHandler, CommandAllias("first"), NumericState(SpecialState.NoState)] public class StateKeepFirst : CommandHandler @@ -107,7 +107,7 @@ bot.Handlers.AddHandler(); --- -## πŸ† Why Telegram.Reactive over state machines? +## πŸ† Why Telegrator over state machines? - **No tangled switch/case**β€”logic is split into independent handlers. - **Flexible dispatching**β€”the mediator decides who and when processes an event. @@ -119,8 +119,8 @@ bot.Handlers.AddHandler(); ## πŸ“š Documentation & Examples -- [Documentation (in progress)](https://github.com/Rikitav/Telegram.Reactive/wiki/) -- [Usage examples](https://github.com/Rikitav/Telegram.Reactive/tree/master/Examples) +- [Documentation (in progress)](https://github.com/Rikitav/Telegrator/wiki/) +- [Usage examples](https://github.com/Rikitav/Telegrator/tree/master/Examples) ---