title: How can I use bot.getUserDetails in my Viber-bot
body: <p>I'm new in nodejs and I'm writing Viber-bot right now.
  Viber-bot documentations is very bad and I really don't understand how to use some functions.
  For example: I want to see some user's data, save that data on mobile device etc.
  How can I use function:</p>
  
  <pre><code>bot.getUserDetails(userProfile)
  </code></pre>
  
  <p>I want to get name, id, phone number if it's possible and save it to some variables.</p>
  
  <p>I have this code:</p>
  
  <pre><code>const ViberBot = require('viber-bot').Bot;
  const BotEvents = require('viber-bot').Events;
  const TextMessage = require('viber-bot').Message.Text;
  const express = require('express');
  const app = express();
  
  if (!process.env.BOT_ACCOUNT_TOKEN) {
    console.log('Could not find bot account token key.');
    return;
  }
  if (!process.env.EXPOSE_URL) {
    console.log('Could not find exposing url');
    return;
  }
  
  const bot = new ViberBot({
    authToken: process.env.BOT_ACCOUNT_TOKEN,
    name: "I'm your bot",
    avatar: ""
  });
  
  const port = process.env.PORT || 3000;
  app.use("/viber/webhook", bot.middleware());
  app.listen(port, () =&gt; {
    console.log(`Application running on port: ${port}`);
    bot.setWebhook(`${process.env.EXPOSE_URL}/viber/webhook`).catch(error =&gt; {
      console.log('Can not set webhook on following server. Is it running?');
      console.error(error);
      process.exit(1);
    });
  });
  </code></pre>
  
  <p>Sorry if it's stupid questions.</p>
  
  <p>Many thanks.</p>