Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="appConfig"></param>
        /// <returns></returns>
        public static TelegramBotApplication Run(TelegramBotAppConfig appConfig)
        {
            var telegramBotApp = new TelegramBotApplication(appConfig);

            telegramBotApp.Run();

            return(telegramBotApp);
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="token"></param>
 public TelegramBotApplication(string token)
 {
     AppConfig = new TelegramBotAppConfig(token);
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="appConfig"></param>
 public TelegramBotApplication(TelegramBotAppConfig appConfig)
 {
     AppConfig = appConfig;
 }