I’ve forked a Telegram Bot written in lua and decided to add webhook support using openresty: https://gitlab.com/Synko/GroupButler
So far so good, but I’d like to do some initialization work before handling requests, like getting bot info from telegram API (/getMe), sending a message for the admin when the bot starts up (/sendMessage), load plugins (optional lua modules) etc. Most of these tasks require reaching the telegram servers from http, that means I can’t use resty.http (also getting ssl errors with this one but that’s another problem) to do these requisitions.
Currently I’m calling curl using os.execute, which is ugly to say the least.