if (!msg || !msg.text || msg.text.length === 0) {
                $log.info('ignoring empty message sending');
                return;
            }