{"repo":"rapierorg/telegram-bot-swift","free":true,"listed":false,"github":"https://github.com/rapierorg/telegram-bot-swift","clone":"git clone https://github.com/rapierorg/telegram-bot-swift.git","description":"Telegram Bot SDK for Swift (unofficial)","language":"Swift","stars":381,"topics":["telegram","bots","telegram-bot-sdk","telegram-bot-api","telegram-bot-swift","swift","bot"],"license":"Apache-2.0","category":"chat-messaging","readme_excerpt":"Chat • Changelog • Prerequisites • Getting started • Creating a new bot • Generating Xcode project • API overview • Debugging notes • Examples • Documentation • Support • License SDK for creating Telegram Bots in Swift. Sample projects: Shopping list bot. Word reverse bot. Trivial bot: Telegram chat Join our chat in Telegram: swiftsdkchat. What's new Release notes contain the significant changes in each release with migration notes. Prerequisites On OS X, use the latest Xcode 9 release. On Linux, install Swift 4.2 or newer and libcurl4-openssl-dev package. Note that shopster-bot example won't build on Linux because GRDB doesn't support Linux yet, but otherwise the library should be functional. Getting started Please get familiar with the documentation on Telegram website: Bots: An introduction for developers Telegram Bot API Creating a new bot In Telegram, add BotFather . Send him these commands: BotFather will return a token. Create a project for your bot: Create Package.swift : Create Sources/main.swift : Do not commit your token to git! readToken reads token from environment variable or from a file. So, either create an environment variable: Or save the token to a file and add the file to .gitignore: Build your bot: And run it: More details are available on Wiki: New Bot. Generating Xcode project It's easy: Open generated hello-bot.xcodeproj and switch the active scheme to the bottom one: Don't forget to add your token to environment variables in Xcode (Scheme settings - R","default_branch":null,"files":null,"tree":[],"storefront":"/r/rapierorg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rapierorg/telegram-bot-swift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}