Skip to content

Commit

Permalink
Merge pull request #93 from cipi1965/master
Browse files Browse the repository at this point in the history
Fix type in some methods
  • Loading branch information
cipi1965 authored Jan 27, 2020
2 parents e9390c4 + 9f47537 commit 1f8e81c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
26 changes: 13 additions & 13 deletions API/TelegramAPIDefinition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ parameters:
- disable_web_page_preview: Bool?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -939,7 +939,7 @@ parameters:
- parse_mode: String?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -955,7 +955,7 @@ parameters:
- thumb: FileInfo?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -968,7 +968,7 @@ parameters:
- parse_mode: String?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -985,7 +985,7 @@ parameters:
- supports_streaming: Bool?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -1001,7 +1001,7 @@ parameters:
- parse_mode: String?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -1014,7 +1014,7 @@ parameters:
- duration: Int?
- disable_notification: Bool?
- reply_to_message_id: Bool?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -1027,7 +1027,7 @@ parameters:
- thumb: FileInfo?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand Down Expand Up @@ -1083,7 +1083,7 @@ parameters:
- foursquare_type: String?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -1096,7 +1096,7 @@ parameters:
- vcard: String?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand All @@ -1111,7 +1111,7 @@ parameters:
- is_closed: Bool?
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand Down Expand Up @@ -1354,7 +1354,7 @@ parameters:
- sticker: FileInfo
- disable_notification: Bool?
- reply_to_message_id: Int?
- reply_markup: InlineKeyboardMarkup?
- reply_markup: ReplyMarkup?
result: Message?

---
Expand Down Expand Up @@ -1491,4 +1491,4 @@ parameters:
- chat_id: Int64?
- message_id: Int?
- inline_message_id: String?
result: GameHighScore[]?
result: GameHighScore[]?
48 changes: 24 additions & 24 deletions Sources/TelegramBotSDK/Generated/Methods.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public extension TelegramBot {
disableWebPagePreview: Bool? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendMessage", defaultParameters["sendMessage"], parameters, [
"chat_id": chatId,
Expand All @@ -154,7 +154,7 @@ public extension TelegramBot {
disableWebPagePreview: Bool? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendMessageCompletion? = nil) {
Expand Down Expand Up @@ -209,7 +209,7 @@ public extension TelegramBot {
parseMode: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendPhoto", defaultParameters["sendPhoto"], parameters, [
"chat_id": chatId,
Expand All @@ -228,7 +228,7 @@ public extension TelegramBot {
parseMode: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendPhotoCompletion? = nil) {
Expand Down Expand Up @@ -256,7 +256,7 @@ public extension TelegramBot {
thumb: FileInfo? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendAudio", defaultParameters["sendAudio"], parameters, [
"chat_id": chatId,
Expand All @@ -283,7 +283,7 @@ public extension TelegramBot {
thumb: FileInfo? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendAudioCompletion? = nil) {
Expand Down Expand Up @@ -312,7 +312,7 @@ public extension TelegramBot {
parseMode: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendDocument", defaultParameters["sendDocument"], parameters, [
"chat_id": chatId,
Expand All @@ -333,7 +333,7 @@ public extension TelegramBot {
parseMode: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendDocumentCompletion? = nil) {
Expand Down Expand Up @@ -363,7 +363,7 @@ public extension TelegramBot {
supportsStreaming: Bool? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendVideo", defaultParameters["sendVideo"], parameters, [
"chat_id": chatId,
Expand Down Expand Up @@ -392,7 +392,7 @@ public extension TelegramBot {
supportsStreaming: Bool? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendVideoCompletion? = nil) {
Expand Down Expand Up @@ -425,7 +425,7 @@ public extension TelegramBot {
parseMode: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendAnimation", defaultParameters["sendAnimation"], parameters, [
"chat_id": chatId,
Expand All @@ -452,7 +452,7 @@ public extension TelegramBot {
parseMode: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendAnimationCompletion? = nil) {
Expand Down Expand Up @@ -481,7 +481,7 @@ public extension TelegramBot {
duration: Int? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Bool? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendVoice", defaultParameters["sendVoice"], parameters, [
"chat_id": chatId,
Expand All @@ -502,7 +502,7 @@ public extension TelegramBot {
duration: Int? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Bool? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendVoiceCompletion? = nil) {
Expand All @@ -528,7 +528,7 @@ public extension TelegramBot {
thumb: FileInfo? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendVideoNote", defaultParameters["sendVideoNote"], parameters, [
"chat_id": chatId,
Expand All @@ -549,7 +549,7 @@ public extension TelegramBot {
thumb: FileInfo? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendVideoNoteCompletion? = nil) {
Expand Down Expand Up @@ -721,7 +721,7 @@ public extension TelegramBot {
foursquareType: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendVenue", defaultParameters["sendVenue"], parameters, [
"chat_id": chatId,
Expand All @@ -746,7 +746,7 @@ public extension TelegramBot {
foursquareType: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendVenueCompletion? = nil) {
Expand Down Expand Up @@ -774,7 +774,7 @@ public extension TelegramBot {
vcard: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendContact", defaultParameters["sendContact"], parameters, [
"chat_id": chatId,
Expand All @@ -795,7 +795,7 @@ public extension TelegramBot {
vcard: String? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendContactCompletion? = nil) {
Expand Down Expand Up @@ -823,7 +823,7 @@ public extension TelegramBot {
isClosed: Bool? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendPoll", defaultParameters["sendPoll"], parameters, [
"chat_id": chatId,
Expand All @@ -848,7 +848,7 @@ public extension TelegramBot {
isClosed: Bool? = nil,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendPollCompletion? = nil) {
Expand Down Expand Up @@ -1647,7 +1647,7 @@ public extension TelegramBot {
sticker: FileInfo,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:]) -> Message? {
return requestSync("sendSticker", defaultParameters["sendSticker"], parameters, [
"chat_id": chatId,
Expand All @@ -1662,7 +1662,7 @@ public extension TelegramBot {
sticker: FileInfo,
disableNotification: Bool? = nil,
replyToMessageId: Int? = nil,
replyMarkup: InlineKeyboardMarkup? = nil,
replyMarkup: ReplyMarkup? = nil,
_ parameters: [String: Any?] = [:],
queue: DispatchQueue = .main,
completion: SendStickerCompletion? = nil) {
Expand Down

0 comments on commit 1f8e81c

Please sign in to comment.