Hello, I just noticed that all of my projects which include this library started throwing this error for some unknown reason.
Example code:
import Foundation
import TelegramBotSDK
let bot = TelegramBot(token: "TOKEN")
let router = Router(bot: bot)
router["start"] = { context in
guard let from = context.message?.from else { return false }
context.respondAsync("Hello!")
return true
}
fatalError("Server stopped due to error: \(bot.lastError)") // throws error at this line, bot.lastError is nil, I guess
Hello, I just noticed that all of my projects which include this library started throwing this error for some unknown reason. Example code:
Is there a way to fix this?