EchoBot sources
Starts/stops with command “/echo”, then simply responds with your message
HelloBot sources
Says “Hello” to new users in group. Responds with “hello” message on command “/greet”
SchedulerBot sources
Demonstrate Jobs Queue scheduling mechanism.
Command “/start X” starts repeatable job, wich will send you a message each X seconds.
Command “/once X” will send you message once after timeout of X seconds.
Command “/stop” stops JobsQueue only for you. Other users continues to receive scheduled messages.
SpellCheckerBot sources
Demonstrate how works InlineMenus and Callback handlers.
Command “/start” will start bot.
Send any english text to bot and it will be checked for mistakes. Bot will propose you some fixes in case of found mistake.
Telegrammer
Telegram Bot Framework written in Swift 5.1 with SwiftNIO network framework
What does it do
Telegrammer is open-source framework for Telegram Bots developers. It was built on top of Apple/SwiftNIO
Join to our Telegram developers chat Join to our Telegrammer channel on Vapor Discord server
The simplest code of Echo Bot looks like this:
main.swift
Documentation
Usage without Vapor
Usage with Vapor
Demo bots
All sample bots
EchoBot sources Starts/stops with command “/echo”, then simply responds with your message
HelloBot sources Says “Hello” to new users in group. Responds with “hello” message on command “/greet”
SchedulerBot sources Demonstrate Jobs Queue scheduling mechanism. Command “/start X” starts repeatable job, wich will send you a message each X seconds. Command “/once X” will send you message once after timeout of X seconds. Command “/stop” stops JobsQueue only for you. Other users continues to receive scheduled messages.
SpellCheckerBot sources Demonstrate how works InlineMenus and Callback handlers. Command “/start” will start bot. Send any english text to bot and it will be checked for mistakes. Bot will propose you some fixes in case of found mistake.
Requirements
Contributing
See CONTRIBUTING.md file.
Author
Givi Pataridze
pataridzegivi@gmail.com @givip