Telegram Vapor Bot (SDK for creating Telegram Bots in Swift)
Please, support with ⭐️
🤖 The wrapper for the Telegram Bot API written in Swift with Vapor. 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.
Example Telegram Bot based on Swift Telegram Vapor Bot - Here
Telegram Vapor Bot (SDK for creating Telegram Bots in Swift)
Please, support with ⭐️
🤖 The wrapper for the Telegram Bot API written in Swift with Vapor. 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.
Example Telegram Bot based on Swift Telegram Vapor Bot - Here
Telegram-bot-example
Swift Server Side Community
Swift Server Side Community - Ukraine / Russian / CIS Telegram Chat
Usage
create folder with your handlers TGHandlers/DefaultBotHandlers.swift
Setup
Create file TGBotConnectionActor.swift
Add Actor for TGConnection
vapor main.swift
make strong reference to TGBotConnection instance and add “await” to configure
Use with LongPolling
for longpolling you should only configure vapor configure.swift
Use with Webhooks
vapor configure.swift
vapor routes.swift
vapor TelegramController.swift
Add to your Vapor project with Swift Package Manager
add to yor Package.json
Acknowledgments
Inspired by Telegrammer