module
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Sep 20, 2026
License: MIT
Opens a new window with license information.
README
¶
[!NOTE]
This README was generated by SKILL, get the ZH version from here.
BUILD BOTS THAT FIT EVERY CHAT PLATFORM
A Go chat-bot library with a core layout, unified replies, and native multi-platform interactions
Table of Contents
Features
go get github.com/pardnchiu/go-bot · Documentation
- core/ package layout — Telegram, Discord, and LINE live under
core/, so platform adapters and docs share one import root.
- Platform-native lifecycles — Telegram polling, Discord Gateway, and LINE webhooks keep each platform’s transport model behind consistent bot APIs.
- Synchronous reply contract — Register one
Reply handler; a non-empty return value is sent as the reply to the triggering message.
- Interaction primitives — Telegram keyboards and ForceReply plus Discord select menus and modals route user input back into the same handler model.
- Media without boilerplate — Send and persist platform media with streaming uploads, size caps, UUID filenames, and contextual cancellation.
Architecture
Full Architecture
graph TB
App[Application] --> Core[core/]
Core --> TG[telegram]
Core --> DC[discord]
Core --> LN[line]
TG --> TelegramAPI[Telegram API]
DC --> DiscordAPI[Discord Gateway/API]
LN --> LineAPI[LINE Webhook/API]
License
This project is licensed under the MIT LICENSE.
Author
邱敬幃 Pardn Chiu
hi@pardn.io
https://www.linkedin.com/in/pardnchiu
©️ 2026 邱敬幃 Pardn Chiu
Directories
¶
core
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.