go-bot

module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: MIT

README

[!NOTE] This README was generated by SKILL, get the ZH version from here.


BUILD BOTS THAT FIT EVERY CHAT PLATFORM

Go Reference Release License


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

Path Synopsis
core

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL