title: Microsoft teams - Get list of all the members in that team using bot (node js)
body: <p>I am developing a bot in microsoft teams using node js sdk 4. I have installed the app in a team and i want to know the list of members in that team using my bot. I have tried this code (below) but only getting data of only one member(myself) .</p>
  
  <pre class="lang-js prettyprint-override"><code>async getAllMembers(context) {
          var continuationToken;
          var members = [];
          do {
  
              var pagedMembers = await TeamsInfo.getPagedMembers(context,10, continuationToken);   //return my data only
              continuationToken = pagedMembers.continuationToken;
              members.push(...pagedMembers.members);
          } while (continuationToken !== undefined);
          for (var i = 0; i &lt; members.length; i++) {
              console.log(members[i]);
          }
          return members;
      };
  </code></pre>