{"repo":"nerzh/swift-telegram-bot","free":true,"listed":false,"github":"https://github.com/nerzh/swift-telegram-bot","clone":"git clone https://github.com/nerzh/swift-telegram-bot.git","description":"🤖 The wrapper for the Telegram Bot API written in Swift. It's not a framework. There is no special syntax here. This is a library that implements all Telegram Bot API methods, which is available to you to work with Vapor, Smoke, Hummingbird, FlyingFox. https://core.telegram.org/bots/api","language":"Swift","stars":266,"topics":["telegram","telegram-bot","telegram-bot-api","bot","swift","server-side-swift","vapor","mini-app","telegram-mini-app-bot"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Swift Telegram Bot for Telegram Bot Api (SDK for creating Telegram Bots in Swift) Please, support with ⭐️ 🤖 The wrapper for the Telegram Bot API written in Swift. It's not a framework. There is no special syntax here. This is a library that implements all Telegram Bot API methods, which is available to you to work with Vapor, Smoke, FlyingFox. Swift Server Side Community Swift Server Side Community - Ukraine / Russian / CIS Telegram Chat ⚠️ SWIFT 6 For now with swift 6 please use 4.0.0 and above Usage - Clone one of examples - Add your telegram bot id to configure.swift - Run in Xcode or build and run binary file - check commands in your telegram bots - /ping - /show buttons Examples - Vapor Telegram Bot - Hummingbird Telegram Bot (AsyncHttpClient) - Hummingbird Telegram Bot (URLSession) - Smoke Telegram Bot (AsyncHttpClient) - FlyingFox Telegram Bot (AsyncHttpClient) Bot configuration. Define bot ID Define connection type LongPolling WebHook Start bot with added handlers TestDispatcher code example Advanced Example Usage You should to implement TGClientPrtcl protocol To configure and run a bot with or without any framework, you need to use TGClientDefault or implement a simple TGClient protocol to send requests to the network with Content-Type: multipart/form-data. You can see an example here: TGClientDefault Add to your Vapor project with Swift Package Manager add to yor Package.json Acknowledgments Inspired by Telegrammer","default_branch":null,"files":null,"tree":[],"storefront":"/r/nerzh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nerzh/swift-telegram-bot/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."}