Telegram bot written in Lua
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Er2 ed6598b145
Update
8 months ago
etc Update 8 months ago
src Update 8 months ago
.dockerignore Update 8 months ago
.gitignore Update 8 months ago
.gitmodules more reply reactions and match whole words, replace Unicode library 1 year ago
Dockerfile Update 8 months ago
config.lua Update 8 months ago
example.env Update 8 months ago
init.lua luajit support 1 year ago
license Update 8 months ago
readme.org Update 8 months ago
run.sh Update 8 months ago

readme.org

Computer bot

Original is here and here. Mirrors can update irregularly.


This is a bot for Telegram. It haven't got much possibilities, but this code can be used in other bots.

Bot can use locale of Telegram client (unlike much bots) and use it or fallback to English.

Bot uses an OOP-style of Lua as described on Wikipedia.

Maybe I will rewrite bot's core to C but here already so many Lua code.

Installation

Officially supported only Docker, but you can use it without Docker.

Docker installation:

  • Clone repository with submodules: git clone --recursive https://gitdab.com/er2/comp-tg and enter cd comp-tg
  • Build image: docker build -t comp-tg .
  • Start it: docker run -d -e .env --name comp-tg --restart always comp-tg