tg-api-lua/readme.org

698 B

Telegram API

This is bindings of Telegram API on Lua, part of my bot.

Installation

We recommended to use .gitmodules file for that. To include, add to gitmodules this:

[submodule "tg-api"]
	path = # enter your path
	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 /api files event.lua and json.lua They can be taken from here.