title: How do I know if a telegram user joined my channel?
body: <p>I am writing a C# desktop app.in this app I write a telegram Id of a user and it says that user is member of the channel or not. my bot is admin of the channel.</p>
  
  <p>I use telegram.bot v9 nugget and searched about this issue all day.</p>
  
  <p>I tried using GetChatMembersCountAsync() in v13 and a lot of other methods but didn't work.</p>
  
  <pre><code>    static private Api bot = new Api("Token");
      long id;
      string channel="@ChannelName";
  
      public Main()
      {
          InitializeComponent();
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          id = long.Parse(textBox7.Text);
          if (IsMember(id,channel))
              MessageBox.Show("This user is member of channel");
          else
              MessageBox.Show("This user is not a member of channel");
  
      }
  
      private bool IsMember(long id,string channelName)
      {
          //??????????????
      }
  </code></pre>
  
  <p>Is there a method for a telegram bot access to list of members of a channel? what should I write in the IsMember() method?</p>
  
  <p>Thank you very much</p>
  
  <hr>
  
  <p>This problem solved by updating telegram.bot nugget to v10 and using GetChatMemberAsync method.</p>
  
  <pre><code>    private bool IsMember(long id,string channelName)  
      {  
          var t = bot.GetChatMemberAsync(channelName, id);
              if (t.Result.Status.ToString().Length &gt; 25)
                  return false;
              return true;
      }
  </code></pre>
  
  <p>thank you</p>