telegram-ai-bot

command module
v0.0.0-...-b732043 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 7 Imported by: 0

README

ELI5 Telegram Bot using OpenAI API

Install

Just a few simple steps:

  1. Clone repository
  2. Rename file sample-config.yaml to config.yaml and set up your tokens (OpenAI and Telegram) in file
  3. Run go mod tidy
  4. Run go run main.go

Usage

This is a simple Telegram bot that uses the OpenAI API to generate a ELI5 explanation of a given topic or phrase.

Commands
  • /start - Start the bot
  • /topic <topic> - Generate a ELI5 explanation of a given topic
  • /phrase <phrase> - Generate a ELI5 explanation of a given phrase

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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