Skip to content

Commit

Permalink
Added constants
Browse files Browse the repository at this point in the history
  • Loading branch information
givip committed Jun 17, 2018
1 parent dc39a68 commit bf73555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Telegrammer/Helpers/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf73555

Please sign in to comment.