Popularity
6.1
Stable
Activity
3.0
-
299
11
41
Programming language: Go
License: MIT License
Tags:
Third-party APIs
Latest version: v2.2.0
tbot alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view tbot alternatives based on common mentions on social networks and blogs.
-
geo-golang
Go Library to access Google Maps, MapQuest, Nominatim, OpenCage, HERE, Bing, and Mapbox geocoding / reverse geocoding APIs. -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells. -
go-tgbot
Pure Golang Telegram Bot API wrapper, generated from swagger file, session-based router and middleware. -
mixpanel
Mixpanel is a library for tracking events and sending Mixpanel profile updates to Mixpanel from your go applications. -
amazon-product-advertising-api
Go Client Library for Amazon Product Advertising API
Get performance insights in less than 4 minutes
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
Do you think we are missing an alternative of tbot or a related project?
README
tbot - Telegram Bot Server

Features
- Full Telegram Bot API 4.7 support
- Zero dependency
- Type-safe API client with functional options
- Capture messages by regexp
- Middlewares support
- Can be used with go modules
- Support for external logger
- MIT licensed
Installation
With go modules:
go get github.com/yanzay/tbot/v2
Without go modules:
go get github.com/yanzay/tbot
Support
Join telegram group to get support or just to say thank you.
Documentation
Documentation: https://yanzay.github.io/tbot-doc/.
Full specification: godoc.
Usage
Simple usage example:
package main
import (
"log"
"os"
"time"
"github.com/yanzay/tbot/v2"
)
func main() {
bot := tbot.New(os.Getenv("TELEGRAM_TOKEN"))
c := bot.Client()
bot.HandleMessage(".*yo.*", func(m *tbot.Message) {
c.SendChatAction(m.Chat.ID, tbot.ActionTyping)
time.Sleep(1 * time.Second)
c.SendMessage(m.Chat.ID, "hello!")
})
err := bot.Start()
if err != nil {
log.Fatal(err)
}
}
Examples
Please take a look inside examples folder.
*Note that all licence references and agreements mentioned in the tbot README section above
are relevant to that project's source code only.