Telegram API binding in Lua, part of my bot.
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.
Er2 faab5a7e6d rewrite to use classes 1 year ago
.gitignore move from bot 2 years ago
init.lua rewrite to use classes 1 year ago
inline.lua rewrite to use classes 1 year ago
license rewrite to use classes 1 year ago
multipart.lua move from bot 2 years ago
readme.org rewrite to use classes 1 year ago
tools.lua rewrite to use classes 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.