Below is an example of Hello world. This code is similar to what you find in other Telegram bot libraries. Luagram can do much more than that!

local Luagram = require("Luagram")

local bot = Luagram.new("...your token from Botfather...")

bot:on_message(function(message)
    bot:send_message({
        chat_id = message.chat.id,
        text = "Hello World!"
    })
end)
/start
Hello World!