1 2 3 4 5 6 7 8 9 10 11
counters = {} function on_msg_receive(msg) if(counters[msg.from.phone] == nil) then counters[msg.from.phone] = 1 else counters[msg.from.phone] = counters[msg.from.phone] + 1 end vardump(counters) end