hmmm
This commit is contained in:
		
							parent
							
								
									5e6f1b9ec7
								
							
						
					
					
						commit
						ea4b8679c9
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								core.lua
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								core.lua
									
										
									
									
									
								
							|  | @ -67,6 +67,10 @@ end | ||||||
| 
 | 
 | ||||||
| function api:_getUpd(lim, offs, ...) | function api:_getUpd(lim, offs, ...) | ||||||
|   local u, ok = self:getUpdates(lim, offs, ...) |   local u, ok = self:getUpdates(lim, offs, ...) | ||||||
|  |   if not ok then | ||||||
|  |     -- fallback if very long message | ||||||
|  |     return offs + 1 | ||||||
|  |   end | ||||||
|   if not ok or not u or (u and type(u) ~= 'table') or not u.result then return end |   if not ok or not u or (u and type(u) ~= 'table') or not u.result then return end | ||||||
|   for _, v in pairs(u.result) do |   for _, v in pairs(u.result) do | ||||||
|     offs = v.update_id + 1 |     offs = v.update_id + 1 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue