Telegram API binding in Lua, part of my bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

748 B

Telegram API

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


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 =

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.