title: How to get chat_id in botpress telegram channel?
body: <p>I need to authorize the user in telegram. so I need to get the chat id or user phone number. how do I get the chat_id or user phone no from telegram bot to my bot press actions</p>
  <pre><code>  const myAction = async () =&gt; {
      bp.logger.info('Here i need the chat id or mobile no')
      // bp.logger.info(JSON.stringify())
  
      let payloads = await bp.cms.renderElement('builtin_text', { text: 'Hello' }, event)
  
      await bp.events.replyToEvent(event, payloads)
    }
  
    return myAction()
  </code></pre>