Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork39
Simple Telegram bot library for Crystal
License
protoncr/tourmaline
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Telegram Bot API library written in Crystal. Meant to be a simple, easy to use, and fast library for writing Telegram bots.
Add this to your application'sshard.yml
:
dependencies:tourmaline:github:protoncr/tourmalinebranch:master
API documentation is also availablehere.
Examples are available in theexamples folder.
Just for README purposes though, let's look at the echo bot example:
require"tourmaline"client=Tourmaline::Client.new(ENV["BOT_TOKEN"])echo_handler=Tourmaline::CommandHandler.new("echo")do |ctx| text= ctx.text.to_s ctx.reply(text)unless text.empty?endclient.register(echo_handler)client.poll
The following features are/will be implemented:
- HTTP/HTTP Proxies
- Client API
- Implementation examples
- Handlers for commands, queries, and more
- Robust middleware system
- Standard API queries
- Stickers
- Inline mode
- Long polling
- Webhooks
- Payments
- Games
- Polls
- Telegram Passport
- Framework Adapters
- Kemal
- Amber
- Lucky
- Athena
- Grip
If you want a new feature feel free to submit an issue or open a pull request.
- Fork it (https://github.com/protoncr/tourmaline/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Thanks to all the people that have contributed to this project!
About
Simple Telegram bot library for Crystal
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.