From bf7355586af06a974d363176f368eecae8671091 Mon Sep 17 00:00:00 2001 From: givip Date: Sun, 17 Jun 2018 17:34:34 +0300 Subject: [PATCH] Added constants --- Sources/Telegrammer/Helpers/Constants.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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