Logic Machine Forum
Get value inside telegram message - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get value inside telegram message (/showthread.php?tid=5047)



Get value inside telegram message - Alexander - 22.10.2023

Hi,

How can I get my value with my telegram message?

if value == 2 then
  message = 'Varmeanlegg: Alarm - I want the value here'
end


RE: Get value inside telegram message - FatMax - 22.10.2023

Try this:

Code:
value = event.getvalue()

if value == 2 then
message = 'Varmeanlegg: Alarm - ' ..value
end

log(message)



RE: Get value inside telegram message - Erwin van der Zwart - 23.10.2023

value == event.getvalue()

must be 

value = event.getvalue()


RE: Get value inside telegram message - FatMax - 24.10.2023

(23.10.2023, 18:01)Erwin van der Zwart Wrote: value == event.getvalue()

must be 

value = event.getvalue()

My bad. Fixed, thanks!