Gotgbot
Telegram Bot example implementation in Go
Install / Use
/learn @PeterCxy/GotgbotREADME
gotgbot
Telegram bot example implementation in Golang
Build
go get github.com/PeterCxy/gotgbot/tgbot
Usage
tgbot /path/to/config.json
Config
Basic config
{
"key": "api_key",
"name": "bot_name",
"debug": true/false,
"modules": [
"module1": true/false,
"module2": true/false,
...
],
}
To make the bot work, you will need extra configurations for modules.
Modules
Modules are defined in every sub-package in this repo. To add new modules, make a new package and register it in support/loader/loader.go
Some modules may need specific configuration in the config file to work. See the module sources for details.
A module can be disabled by setting it to false in config.
Testing
Put config file to test/test.json and then run make test
License
See the file LICENSE
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
