TeleTok/Program.cs
2023-02-14 13:59:20 -05:00

26 lines
749 B
C#

using Microsoft.Extensions.Configuration;
using System;
namespace TeleTok
{
public class TeleTok
{
public static IConfigurationRoot config = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("config.json", true)
.Build();
public static string token = config.GetSection("TeleTokConf:token").Value;
public static string ptInstance = config.GetSection("TeleTokConf:proxitokInstance").Value;
static async Task Main(string[] args)
{
TelegramListener listener = new TelegramListener();
Console.WriteLine("Now listening...");
listener.RunListener();
}
}
}