From 97f6034ba6c92f75a3756bb29b8182d15c31206a Mon Sep 17 00:00:00 2001 From: Matteo Piccina Date: Wed, 3 Jun 2020 00:19:08 +0200 Subject: [PATCH] Fix fileSize on Video type from String to Int --- API/TelegramAPIDefinition.yml | 2 +- Sources/TelegramBotSDK/Generated/Types.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API/TelegramAPIDefinition.yml b/API/TelegramAPIDefinition.yml index 047e690..667162b 100644 --- a/API/TelegramAPIDefinition.yml +++ b/API/TelegramAPIDefinition.yml @@ -164,7 +164,7 @@ fields: - duration: Int - thumb: PhotoSize? - mime_type: String? - - file_size: String? + - file_size: Int? --- type: Animation diff --git a/Sources/TelegramBotSDK/Generated/Types.swift b/Sources/TelegramBotSDK/Generated/Types.swift index 661feb5..387c7b6 100644 --- a/Sources/TelegramBotSDK/Generated/Types.swift +++ b/Sources/TelegramBotSDK/Generated/Types.swift @@ -299,8 +299,8 @@ public class Video: Codable { public var duration: Int public var thumb: PhotoSize? public var mimeType: String? - public var fileSize: String? - public init(fileId: String, fileUniqueId: String, width: Int, height: Int, duration: Int, thumb: PhotoSize? = nil, mimeType: String? = nil, fileSize: String? = nil) { + public var fileSize: Int? + public init(fileId: String, fileUniqueId: String, width: Int, height: Int, duration: Int, thumb: PhotoSize? = nil, mimeType: String? = nil, fileSize: Int? = nil) { self.fileId = fileId self.fileUniqueId = fileUniqueId self.width = width