This is a simple wrapper for the Telegram Bot-API for Go. It provides a high-level API in Go that works with the Telegram REST API.
The implementation is pretty raw, i.e. you will just send and receive messages - you have to handle any command parsing or stuff yourself.
A simple
go get -u github.com/mrd0ll4r/tbotapi
should do it.
See examples/
for some simple bots.
Start with the echo bot.
Is the API stable? No
Why is the API not stable? Because Telegram changes its bot API frequently. We try to only add things, not remove them. So everything you did with this library before should also work after API changes.
Exception: I did one major overhaul so far, where I removed the model package and unified most sending methods. I'm pretty happy with the architecture so far, so I hope I won't have to do that again.
We use
- resty for REST calls
If you want to contribute code, make sure to read the contributing guidelines.
This work is licensed under the MIT License. A copy of the MIT License can be found in the LICENSE
file.
Feel free to use this library for any bot whatsoever. If you find any bugs, have any ideas about improvements or just want to show me what you've done with this, please contact me through this bot.