telegram-bot-go

command module
v0.0.0-...-0a2b026 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 12 Imported by: 0

README

telegram-bot-go

Test CodeQL

Markov chain based Telegram bot

Usage

Telegram credentials are passed through via the TELEGRAM_BOT_TOKEN environment variable. All other options are passed in via the command line and are set up with "sensible defaults" that will enable you to get up and running quickly and adjust from there. To see these command line options in full, use: telegrambot -help

Any source data should be in text files, separated by newlines. An empty "source_data" directory is provided in this repo for convenience. The source data (if specified) will be used to train the bot on startup.

The bot will also learn from every message it receives (even if it doesn't reply to it). Over time, this means it will begin to imitate the conversation styles of any chats it participates in. While it will never explicitly store messages it recieves verbatim, it is not recommended to place it anywhere it might overhear sensitive details.

For help setting up a Telegram bot, check their guide here: https://core.telegram.org/bots

Features

Brain types

Chattiness

Profanity filter

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