﻿using System;
using System.Collections.Generic;
using Telegram.Bot.Mvc.Framework;
using System.Configuration;
using Telegram.Bot.Mvc.Extensions;
using Telegram.Bot.Mvc.Core;

namespace Telegram.Bot.Mvc.StandAlone
{
    class Program
    {
        // For running bots that are multi-tenants uncomment ...
        //private static Dictionary<string, BotListener> Listeners = new Dictionary<string, BotListener>();
        private static ILogger Logger = new Logger();
        private static void Main(string[] args)
        {
            while (true)
            {

                var token = "<token here>";
                // Starting ...
                var listener = new BotListener(token, Logger);
                listener.Start();
                //Listeners.Add(token, listener);

                Console.WriteLine("BOT STARTED: " + listener.BotInfo.Username);
                Console.ReadLine();
                // Stopping ...  
                listener.Stop();
                //Listeners.Clear();
            }
        }
    }
}
