Example #1
0
        private static void Main(string[] args)
        {
            ServerProvider serverProvider = new ServerProvider();

            serverProvider.RegisterServerService <AuthenticationService>();
            serverProvider.RegisterServerService <BookService>();
            serverProvider.ProviderSetting.IsEnabledDataExchanger = false;
            serverProvider.Start("http://localhost:6452/SignalGoTest/any");

            SignalGoBotManager signalGoBotManager = new SignalGoBotManager();

            signalGoBotManager.Start("your telegram bot token here", serverProvider);
            Console.WriteLine("server started successfuly call your services with telegram bot or http request, example http://localhost:6452/Book/GetListOfBook");
            Console.ReadLine();
        }
Example #2
0
 public void OnClientConnected(TelegramClientInfo clientInfo, SignalGoBotManager signalGoBotManager)
 {
 }
Example #3
0
 public void OnStarted(SignalGoBotManager signalGoBotManager)
 {
 }