Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        public virtual T CreateCommand <T>() where T : ITelegramBotCommand
        {
            var command = TelegramBotServicesProvider.CreateWithServices <T>();

            command.Initialize(TelegramBotServicesProvider);

            return(command);
        }
        /// <summary>
        ///
        /// </summary>
        public TelegramBotDefaultOptions()
        {
            var container = new TelegramBotServicesContainer();

            Container           = container;
            ServicesProvider    = new TelegramBotServicesProvider(container);
            ServicesRegistrator = new TelegramBotServicesRegistrator();
        }