المشاريع
عرض على GitHub tbot - Telegram Bot Server
yanzay/tbot
حول
Go library for Telegram Bot API
أدوات التطويرما يمكنك فعله
- Full Telegram Bot API 4.7 support
- Zero dependency
- Type-safe API client with functional options
- Capture messages by regexp
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…