Cikaldev

Bot Telegram Menggunakan Bahasa Lua

on luabottelegram

Dependencies

luarocks install telegram-bot-lua

Sample code

local BOT_TOKEN = "<your_bot_token>"
local bot = require("telegram-bot-lua").configure(BOT_TOKEN)

function bot.on_message(msg)
  if msg.text == "/start" then
    return bot.send_message(msg.chat.id, "bot already start")
  end
  
  -- =============================
  -- add your desired command here
  -- =============================
end