tg-api-lua/readme.org
2022-08-10 12:50:56 +03:00

30 lines
748 B
Org Mode

* Telegram API
This is bindings of Telegram API written in Lua, part of [[https://gitdab.com/er2/comp-tg][my bot]].
* Installation
Yourpath is any directory inside your project.
Recommended to use *.gitmodules* file for that.
To include, add to gitmodules this:
#+begin_src
[submodule "tg-api"]
path = yourpath/api
url = https://gitdab.com/er2/tg-api-lua
#+end_src
Also you need to:
+ Install *LuaSec* for https requests.
+ Execute this code *before* include this API:
#+begin_src lua
package.path = 'yourpath/?.lua;yourpath/?/init.lua;' .. package.path
#+end_src
+ Copy to yourpath files *class.lua*, *event.lua*, *json.lua*
They can be taken from [[https://gitdab.com/er2/comp-tg/src/branch/main/etc][here]].