You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.gitignore | 2 years ago | |
init.lua | 1 year ago | |
inline.lua | 1 year ago | |
license | 1 year ago | |
multipart.lua | 2 years ago | |
readme.org | 1 year ago | |
tools.lua | 1 year ago |
readme.org
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.