Files
Telegrator/Telegrator.ConsoleHost.Web/Program.cs
T

26 lines
758 B
C#
Raw Normal View History

using Telegrator.Hosting;
using Telegrator.Hosting.Web;
namespace Telegrator.ConsoleHost.Web
{
public class Program
{
public static void Main(string[] args)
{
TelegramBotWebHostBuilder builder = TelegramBotWebHost.CreateBuilder(new TelegramBotWebOptions()
{
Args = args,
WebhookUri = "https://telegrator-hooker.cloudpub.ru/bot",
DescendDescriptorIndex = false,
ExceptIntersectingCommandAliases = true,
});
builder.Handlers.CollectHandlersAssemblyWide();
TelegramBotWebHost telegramBot = builder.Build();
telegramBot.SetBotCommands();
telegramBot.Run();
}
}
}