rapierorg / telegram-bot-swift

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

rangeOfString function not working #3

Closed simonnarang closed 8 years ago

simonnarang commented 8 years ago

I am unable to call the rangeOfString function for the command string. The error I get is value of type 'String' has no member 'rangeOfString' I don't know why this is happening, I am using swift 2.2 snapshot 4-12 and it runs fine in playground

zmeyc commented 8 years ago

In Swift 3 it's range(of: string).

zmeyc commented 8 years ago

Btw, I fixed a lot of stuff in 0.4.1, please upgrade. I pushed the changes today. Docs are obsolete now, but Examples/ should be in working state.

simonnarang commented 8 years ago

🙏 Thank you so much