Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed May 31, 2021
1 parent 1d6b60e commit e72c976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/telegram-vapor-bot-lib/Bot/TGConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public final class TGWebHookConnection: TGConnectionPrtcl {

@discardableResult
public func start() throws -> Bool {
let webHookParams: TGSetWebhookParams = .init(url: webHookURL.path)
let webHookParams: TGSetWebhookParams = .init(url: webHookURL.description)
let future: EventLoopFuture<Bool> = try bot.setWebhook(params: webHookParams)
var result: Bool = false
future.whenComplete { response in
Expand All @@ -137,7 +137,7 @@ public final class TGWebHookConnection: TGConnectionPrtcl {
log.critical(error.logMessage)
}
}
_ = try future.wait()
_ = try? future.wait()

return result
}
Expand Down

0 comments on commit e72c976

Please sign in to comment.