Stelle Timeout zurück, vielleicht fixt es ja, dass der Bot nicht auf einige Nachrichten antwortet
This commit is contained in:
		@@ -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
 | 
			
		||||
return bot
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user