Skip to content

Commit

Permalink
Merge pull request #106 from cipi1965/fix-video-definition
Browse files Browse the repository at this point in the history
Fix fileSize on Video type from String to Int
  • Loading branch information
cipi1965 authored Jun 2, 2020
2 parents c1453d5 + 97f6034 commit 5d26d40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion API/TelegramAPIDefinition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fields:
- duration: Int
- thumb: PhotoSize?
- mime_type: String?
- file_size: String?
- file_size: Int?

---
type: Animation
Expand Down
4 changes: 2 additions & 2 deletions Sources/TelegramBotSDK/Generated/Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d26d40

Please sign in to comment.