A Telegram Bot Framework in Lua.
- Operating System: UNIX
- Lua 5.1+
- Lua-socket
- Lua-cjson
- Lua-ssl
- Lua-ltn12
- Lua-multipart-post
- @small_robot: A chat bot with some interesting features in English, Chinese and Japanese.
I am using luaver as Lua Version Manager. This is an example with debian/ubuntu.
- Install dependencies of luaver.
sudo apt-get install libreadline-dev
- Install luaver.
curl -fsSL https://raw.githubusercontent.com/dhavalkapil/luaver/master/install.sh | sh -s - -r v1.1.0
- Restart your shell.
- Install Lua 5.3.5.
luaver install 5.3.5
- Install Luarocks 3.9.2.
luaver install-luarocks 3.9.2
- Switch to Lua 5.3.5 and Luarocks 3.9.2.
luaver use 5.3.5 && luaver use-luarocks 3.9.2
- Install dependency of luasec.
sudo apt install libssl-dev
- Install dependencies of this project.
cat requirements.txt | xargs -L 1 luarocks install --local
- Edit
src/config.lua
(copy fromsrc/config-example.lua
). - Start bot.
cd src && lua main.lua