Skip to content

v3.2 — Fix module structure for LuaRocks

Choose a tag to compare

@wrxck wrxck released this 20 Feb 23:47
· 15 commits to develop since this release
6b550af

Bug Fix

  • Fixed module loading on Lua 5.1: Renamed src/init.lua to src/main.lua so LuaRocks installs the main module as a flat telegram-bot-lua.lua file instead of telegram-bot-lua/init.lua. This fixes require("telegram-bot-lua") on Lua 5.1 environments where ?/init.lua isn't in the default package.path. (#35)

Tests

  • Added 84 module structure tests covering require paths, rockspec file integrity, deprecated core shim, and submodule loading.