Skip to content

Commit 5d26d40

Browse files
authored
Merge pull request #106 from cipi1965/fix-video-definition
Fix fileSize on Video type from String to Int
2 parents c1453d5 + 97f6034 commit 5d26d40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

API/TelegramAPIDefinition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fields:
164164
- duration: Int
165165
- thumb: PhotoSize?
166166
- mime_type: String?
167-
- file_size: String?
167+
- file_size: Int?
168168

169169
---
170170
type: Animation

Sources/TelegramBotSDK/Generated/Types.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ public class Video: Codable {
299299
public var duration: Int
300300
public var thumb: PhotoSize?
301301
public var mimeType: String?
302-
public var fileSize: String?
303-
public init(fileId: String, fileUniqueId: String, width: Int, height: Int, duration: Int, thumb: PhotoSize? = nil, mimeType: String? = nil, fileSize: String? = nil) {
302+
public var fileSize: Int?
303+
public init(fileId: String, fileUniqueId: String, width: Int, height: Int, duration: Int, thumb: PhotoSize? = nil, mimeType: String? = nil, fileSize: Int? = nil) {
304304
self.fileId = fileId
305305
self.fileUniqueId = fileUniqueId
306306
self.width = width

0 commit comments

Comments
 (0)