echo.lua

-- Run this file with lua echo.lua

local ggram = require("ggram")


local bot = ggram("123456789:QWERTYUIOPASDFGHJKLZXCVBNM") -- replace with your token (t.me/BotFather)
require("ggram.polling").start(bot) -- start getUpdates loop


-- all handlers (like .text) described in ggram/bot.lua
-- more info about ctx: /info/
bot.text(function(ctx)
	ctx.reply.text(ctx.message.text)
end, "echo")


-- launch http requests, timers etc
ggram.idle()
generated by LDoc 1.5.0 Last updated 2024-09-04 21:00:44