Skip to content

Commit

Permalink
Make explanation optional in Poll
Browse files Browse the repository at this point in the history
  • Loading branch information
Butanediol authored and zmeyc committed Aug 13, 2021
1 parent c60808d commit c03186f
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 @@ -254,7 +254,7 @@ fields:
- type: PollType
- allows_multiple_answers: Bool
- correct_option_id: Int?
- explanation: String
- explanation: String?
- explanation_entities: MessageEntity[]?
- open_period: Int?
- close_date: Date?
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 @@ -467,11 +467,11 @@ public class Poll: Codable {
public var type: PollType
public var allowsMultipleAnswers: Bool
public var correctOptionId: Int?
public var explanation: String
public var explanation: String?
public var explanationEntities: [MessageEntity]? = []
public var openPeriod: Int?
public var closeDate: Date?
public init(id: String, question: String, options: [PollOption], totalVoterCount: Int, isClosed: Bool, isAnonymous: Bool, type: PollType, allowsMultipleAnswers: Bool, correctOptionId: Int? = nil, explanation: String, explanationEntities: [MessageEntity]? = nil, openPeriod: Int? = nil, closeDate: Date? = nil) {
public init(id: String, question: String, options: [PollOption], totalVoterCount: Int, isClosed: Bool, isAnonymous: Bool, type: PollType, allowsMultipleAnswers: Bool, correctOptionId: Int? = nil, explanation: String? = nil, explanationEntities: [MessageEntity]? = nil, openPeriod: Int? = nil, closeDate: Date? = nil) {
self.id = id
self.question = question
self.options = options
Expand Down

0 comments on commit c03186f

Please sign in to comment.