Telegram API binding in Lua, part of my bot.
.gitignore | ||
init.lua | ||
inline.lua | ||
license | ||
multipart.lua | ||
readme.org | ||
tools.lua |
Telegram API
This is bindings of Telegram API written in Lua, part of my bot.
Installation
Yourpath is any directory inside your project.
Recommended to use .gitmodules file for that. To include, add to gitmodules this:
[submodule "tg-api"]
path = yourpath/api
url = https://gitdab.com/er2/tg-api-lua
Also you need to:
- Install LuaSec for https requests.
-
Execute this code before include this API:
package.path = 'yourpath/?.lua;yourpath/?/init.lua;' .. package.path
- Copy to yourpath files class.lua, event.lua, json.lua They can be taken from here.