Exemplo n.º 1
0
        private void HandleCallback(String callback, long chatId, int messageId)
        {
            if (!chatStates.ContainsKey(chatId))
            {
                chatStates.Add(chatId, new ChatStateHandler(chatId));
            }
            var    _inputThreadWrapper = new BotInput(_bot, chatStates[chatId]);
            Thread commandThread       = new Thread(() => _inputThreadWrapper.HandleCallback(callback, chatId, messageId));

            commandThread.Start();
        }
Exemplo n.º 2
0
 public BotCallbacks(BotInput BotInput, Telegram.Bot.TelegramBotClient Bot)
 {
     _botInput = BotInput;
     _bot      = Bot;
 }