 						}
 					}
 					for update in updates {
-						handler(.success(update), self)
+						handler(update, self)
 					}
 				case .failure(let error):
-					handler(.failure(error), self)
 					encounterError = error
 				}
 				semaphore.signal()

import Foundation
import Dispatch

public typealias UpdateHandler = (Result<Update>, ZEGBot) -> Void

public struct ZEGBot {


			task.resume()
			semaphore.wait()
		}
		throw encounterError!
	}

}
