To check if multipart/form-data format should be used to send a request TelegramBot.swift:162 / TelegramBot.swift:167 performs checks on type of parameter. But the type of parameters are Optional<InputFile> and Optional<InputFileOrString> instead of InputFile and InputFileOrString. So request sent as http body and uploading ends with error:
Expected status code 200, got 400: Bad Request: wrong URL host
To check if
multipart/form-data
format should be used to send a requestTelegramBot.swift:162
/TelegramBot.swift:167
performs checks on type of parameter. But the type of parameters areOptional<InputFile>
andOptional<InputFileOrString>
instead ofInputFile
andInputFileOrString
. So request sent as http body and uploading ends with error: Expected status code 200, got 400: Bad Request: wrong URL host