Skip to content

🤖 A multipurpose telegram bot combining LLM APIs and local command execution

License

Notifications You must be signed in to change notification settings

davidramiro/hsbot

This branch is up to date with master.

Folders and files

NameName
Last commit message
Last commit date
Feb 16, 2025
Feb 25, 2025
Aug 25, 2024
Aug 31, 2024
Aug 26, 2024
Aug 25, 2024
Aug 25, 2024
Feb 16, 2025
Mar 24, 2025
Mar 24, 2025
Feb 25, 2025

Repository files navigation

hsbot

A telegram bot for generating LLM responses, manipulating images and transcribing audio.

Prerequisites

Copy config.sample.toml to config.toml and set your keys/options.

Handlers

  • /chat: Keeping conversation context for a duration defined in the config, this handler uses Claude to generate chat responses. Also works with replying to images, using Claude's Vision component.
  • /image: Generating images from a prompt, set to use Flux as default.
  • /scale: Liquid rescale images with a power factor
  • /transcribe: Transcribe audio files and voice messages

Development

The base architecture is hexagonal. For business logic and its interfaces, extend the ports side on internal/core. Implementations that talks to something else than the business logic should be created as an adapter in internal/adapters.

Commands are stored and fetched dynamically, use the CommandRegistry to register new commands. After that, you can create the handler in main.go.

About

🤖 A multipurpose telegram bot combining LLM APIs and local command execution

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages