rapierorg / telegram-bot-swift

Telegram Bot SDK for Swift (unofficial)
https://github.com/rapierorg/telegram-bot-swift/wiki
Apache License 2.0
375 stars 63 forks source link

error: use of unresolved identifier 'router' in main.swift #88

Closed NotExactlyMeerkat closed 4 years ago

NotExactlyMeerkat commented 4 years ago

Hi, I created a bot based on the "hello-bot". And when I was trying to compile, I got these errors: error: use of unresolved identifier 'router' and error: use of unresolved identifier 'router' (but on the line 26). So, what do I need to do to solve the problem?

NotExactlyMeerkat commented 4 years ago
NotExactlyMeerkat commented 4 years ago

Ok, so I just watched the word reverser bot's code and then I added this string: let router = Router(bot: bot)