Skip to content
☸️🐙 A highly opinionated telegram bot framework, mainly based on Telegram.Bot
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md

README.md

Navigator

A highly opinionated telegram bot framework, mainly based on Telegram.Bot

This is the repository of the metapackage for Navigator framework which includes:

Examples

Some examples can be found in the samples repository.

Also checkout some bots made with Navigator:

  • TODO

Usage

Including Navigator in your project is simple:

public class Startup
{
    // ...

    public void ConfigureServices(IServiceCollection services)
    {
        // ...

        services.AddMediatR(typeof(Startup).Assembly);
        
        services.AddNavigator()
            .AddBotToken(Configuration["TELEGRAM_BOT_TOKEN"])
            .AddActionsFromAssemblyOf<Startup>();

        /// ...
    }

    // ...
}

.AddNavigator() initializes the navigator builder and the basic services for Navigator to work.

.AddBotToken(...) sets the token for your bot.

.AddActionsFromAssemblyOf<T>() registers all your bot actions.

More options are available, check them out here. //TODO

Implemen

License

Navigator Framework Copyright (C) 2019 Lucas Maximiliano Marino

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

You can’t perform that action at this time.