Skip to content

A template built on Telegram.Bot to demonstrate the modular implementation in the Telegram bot using Dependency Injection, an idea taken from ASP.NET projects.

License

Notifications You must be signed in to change notification settings

imrostami/TelegramBotDependencyInjection

Repository files navigation

TelegramBotDependencyInjection

Building Telegram bots in C# language is almost very complicated in development Therefore, I tried to reduce this complexity with an innovative format and divide the general logic of the program into different classes (under the title of Bot Controller). This idea is taken from ASP.NET MVC projects

ff

The advantage of using this method is that in addition to being able to inject your DB Context and database services into your controllers, you can easily add the relevant module whenever you need the code. Add and remove (via DI Container)

About

A template built on Telegram.Bot to demonstrate the modular implementation in the Telegram bot using Dependency Injection, an idea taken from ASP.NET projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages