Navigator 3.1.0
See the version list below for details.
dotnet add package Navigator --version 3.1.0
NuGet\Install-Package Navigator -Version 3.1.0
<PackageReference Include="Navigator" Version="3.1.0" />
paket add Navigator --version 3.1.0
#r "nuget: Navigator, 3.1.0"
// Install Navigator as a Cake Addin #addin nuget:?package=Navigator&version=3.1.0 // Install Navigator as a Cake Tool #tool nuget:?package=Navigator&version=3.1.0
Navigator
A highly opinionated telegram bot framework, mainly based on Telegram.Bot.
The only requirement is Microsoft.AspNetCore.App (>= 8.0)
.
The usage is very simple yet powerful:
...
using Navigator;
...
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddMemoryCache();
builder.Services.AddNavigator(options =>
{
options.SetWebHookBaseUrl(builder.Configuration["BASE_WEBHOOK_URL"]!);
options.SetTelegramToken(builder.Configuration["TELEGRAM_TOKEN"]!);
options.EnableTypingNotification();
});
var app = builder.Build();
var bot = app.GetBot();
// This action will be triggered if the user sends a message in the style of `/join <text>`.
bot.OnCommand("join", async (INavigatorClient client, Chat chat, string[] parameters) =>
{
var result = string.Join(',', parameters);
await client.SendTextMessageAsync(chat, result);
});
app.MapNavigator();
app.Run();
Examples
Some examples can be found in the samples repository.
Also checkout some bots made with Navigator
:
- @ThankiesBot, check out it's source code.
- @FOSCBot, check out it's source code.
License
Navigator Framework Copyright (C) 2019-2024 Lucas Maximiliano Marino
This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Telegram.Bot (>= 21.10.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.0.0-beta2 | 39 | 11/22/2024 |
3.2.3 | 126 | 10/17/2024 |
3.2.2 | 166 | 8/26/2024 |
3.2.1 | 151 | 8/22/2024 |
3.2.0 | 131 | 8/22/2024 |
3.1.0 | 117 | 8/22/2024 |
3.0.0 | 127 | 8/21/2024 |
1.9.3-beta1 | 833 | 4/9/2022 |
1.9.2-beta1 | 688 | 4/7/2022 |
1.9.1-beta3 | 431 | 4/7/2022 |
1.9.1-beta2 | 208 | 4/6/2022 |
1.9.1-beta1 | 343 | 4/5/2022 |
1.9.0-beta9 | 181 | 4/5/2022 |
1.9.0-beta8 | 194 | 4/5/2022 |
1.9.0-beta7 | 187 | 4/5/2022 |
1.9.0-beta6 | 198 | 4/5/2022 |
1.9.0-beta4 | 176 | 4/5/2022 |
1.9.0-beta2 | 186 | 4/4/2022 |
1.9.0-beta10 | 187 | 4/5/2022 |
1.9.0-beta1 | 176 | 4/4/2022 |