Telegram API binding in Lua, part of my bot.
Find a file
2022-08-10 12:50:56 +03:00
.gitignore move from bot 2021-08-16 11:47:49 +03:00
init.lua rewrite to use classes 2022-08-10 12:50:56 +03:00
inline.lua rewrite to use classes 2022-08-10 12:50:56 +03:00
license rewrite to use classes 2022-08-10 12:50:56 +03:00
multipart.lua move from bot 2021-08-16 11:47:49 +03:00
readme.org rewrite to use classes 2022-08-10 12:50:56 +03:00
tools.lua rewrite to use classes 2022-08-10 12:50:56 +03:00

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.