title: How to export object from module.exports?
body: <p>I need to require a file passing a parameter, for this I used the following syntax:</p>
  
  <pre><code>module.exports = function(bot) {
      const menu = new TelegrafInlineMenu(bot);
      return menu;
  };
  </code></pre>
  
  <p>the problem's that the code above export the function, I need to return the <code>menu</code> object, is there a way to do this?</p>
  
  <p>I require the script using:</p>
  
  <pre><code>const menu = require('menu')(bot);
  </code></pre>
  
  <p>problem's that <code>menu</code> is a function not an object</p>