From 8f392538ee53bbd74075d1e464e05f80fc3af653 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 7 Dec 2016 22:37:07 +0100 Subject: [PATCH] =?UTF-8?q?Stelle=20Timeout=20zur=C3=BCck,=20vielleicht=20?= =?UTF-8?q?fixt=20es=20ja,=20dass=20der=20Bot=20nicht=20auf=20einige=20Nac?= =?UTF-8?q?hrichten=20antwortet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/bot.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otouto/bot.lua b/otouto/bot.lua index 66ab992..6a84d51 100644 --- a/otouto/bot.lua +++ b/otouto/bot.lua @@ -223,7 +223,7 @@ function bot:run(config) while self.is_started do -- Update loop - local res = bindings.getUpdates{ timeout = 120, offset = self.last_update+1, allowed_updates = {'message', 'inline_query', 'callback_query'} } + local res = bindings.getUpdates{ timeout = 20, offset = self.last_update+1, allowed_updates = {'message', 'inline_query', 'callback_query'} } if res then -- Iterate over every new message. for n=1, #res.result do @@ -408,4 +408,4 @@ function create_cred() print ('saved credentials into reds hash telegram:credentials') end -return bot \ No newline at end of file +return bot