Refactor TelegramApi module

This commit is contained in:
Peter
2019-06-16 02:08:39 +01:00
parent 32771d6d22
commit 6cca51d867
245 changed files with 5935 additions and 2603 deletions

View File

@@ -0,0 +1,11 @@
import Foundation
private var telegramApiLogger: (String) -> Void = { _ in }
public func setTelegramApiLogger(_ f: @escaping (String) -> Void) {
telegramApiLogger = f
}
func telegramApiLog(_ what: @autoclosure () -> String) {
telegramApiLogger(what())
}