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

			task.resume()
			semaphore.wait()
		}
		NSLog("Exit due to error: \(encounterError!)")
		exit(2)
	}

}

import Foundation
import Dispatch

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

public struct ZEGBot {

