Timeout für Long-Polling erhöht und allowed_updates hinzugefügt (Bot-API v2.3.1)

This commit is contained in:
Andreas Bielawski 2016-12-04 12:30:52 +01:00
parent 95d599f35e
commit e003f32066
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ function bot:run(config)
while self.is_started do
-- Update loop
local res = bindings.getUpdates{ timeout = 20, offset = self.last_update+1 }
local res = bindings.getUpdates{ timeout = 120, 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