diff --git a/Sources/Telegrammer/Helpers/Constants.swift b/Sources/Telegrammer/Helpers/Constants.swift index 84c0eba..1bfa9b9 100644 --- a/Sources/Telegrammer/Helpers/Constants.swift +++ b/Sources/Telegrammer/Helpers/Constants.swift @@ -11,8 +11,8 @@ public struct Const { static let MessageMaxLength: Int = 4096 static let CaptionMaxLength: Int = 200 static let WebhooksSupportedPorts: [Int] = [443, 80, 88, 8443] - static let DownloadFileMaxSize: Int = 20 //TODO: rewrite in bytes - static let UploadFileMaxSize: Int = 50 //TODO: rewrite in bytes + static let DownloadFileMaxSize: Int = 20 //TODO: rewrite in bytes, now in Mbytes + static let UploadFileMaxSize: Int = 50 //TODO: rewrite in bytes, now in Mbytes ///Telegram may allow short bursts that go over this limit, but eventually you’ll begin receiving 429 errors. static let MessagesMaxPerSecondPerChat: Int = 1 static let MessagesMaxPerSecond: Int = 30