Commit c9fecc1795a89010a9c0ca07a745dfc801019f18

Authored by Adhidarma Hadiwinoto
1 parent 5d4c6be3c5
Exists in master

debug chat id

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -45,7 +45,7 @@ bot.getMe().then(function (me) {
45 45 });
46 46  
47 47 bot.on('text', function (msg) {
48   - logger.info(msg);
  48 + logger.info('Incoming message (' + msg.chat.id + '): ' + msg.text, {message: msg});
49 49  
50 50 var from = msg.from.username.toUpperCase() + config.msisdn_suffix;
51 51