Open euphoria360 opened 7 years ago
Same for me. It seems like the code inside on_user_update() is never called, at least when a contact changes his online status. I actually don't know if "on_user_update" means "on online status changed".
Anyone? :(
Hi. I want to write a Lua script to notify me when a user gets online or offline. these kinds of info appear in telegram-cli like this:
Seems I need to use
function on_user_update
in lua to achieve this. By looking into some lua script examples in here and on the internet, this is how far I've got:Now when i send "bot" i get a hiiii but seems function on_user_update doesnt do anything here.
P.S the command
/opt/myscripts/telegram-sendmsg.sh
sends me anything i throw at it via telegram bot APIWhat am I doing wrong?