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

Fixed an error in running in version 2.0.0 #104

Closed hdcola closed 4 years ago

hdcola commented 4 years ago

Using an Int64 directly in the SendMessage function is no longer straightforward.

hdcola commented 4 years ago

I changed it to .chat()

hdcola commented 4 years ago

Anyway I just wanted to say that the current README.MD in

let fromId: Int64 = 12345678 // your user id bot.sendMessageSync(fromId, "Hello!") // blocks until the message is sent bot.sendMessageSync(fromId, "Bye.")

It's not going to work.

cipi1965 commented 4 years ago

Now it's perfect, merging