Skip to content

pabla/tgbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tgbot

A simple Telegram bot on Crystal (http://crystal-lang.org/).

Installation

You need Crystal 0.20 or Docker.

Environment variables

Usage

Starting via Crystal:

crystal build src/tgbot.cr --release
APP_TOKEN=xxx APP_CHAT_ID=xxx ./tgbot

Starting via Docker:

docker build -t tgbot .
docker run -e APP_TOKEN=xxx -e APP_CHAT_ID=xxx tgbot

You can submit JSON-message to the bot.

echo '{"text": "Hello, dude!"}' | nc 127.0.0.1 12800

About

A simple Telegram bot on Crystal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published