Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 887 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 887 Bytes

🤖 Telebot Tools

go get github.com/go-telebot/pkg

This repository holds a number of useful tools for Telebot V3 framework.

Monitor is a middleware, which collects and stores important and representative analytics of the bot, records almost every incoming update in the highly efficient and fast ClickHouse storage. It also allows a developer to log its own custom data with JSON-formatted payload.

Integration

mon, err := monitor.New(monitor.Config{...})

b.OnError = mon.OnError()
b.Use(mon.Middleware())

// And you're ready to go!

Telegraph is a simple package to upload files to Telegraph.

Usage

telegraph.UploadFile("image.png")
telegraph.Upload(reader)