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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址