title: How to check if telegram user is bot and not an user?
body: <p>I'm trying to get the user values of member who joins my super group.
  What I want to do is when bot joins my group I want to ban him forever, and if it's a regular user and not a bot do nothing.</p>
  
  <p>I tried for some days and some other credentials but it didn't work, seems like the condition is wrong.</p>
  
  <p>I'm using <code>Telegram.Bot</code> library</p>
  
  <p>Here is my approach so far: </p>
  
  <pre><code>if (e.Message.Type == MessageType.ChatMembersAdded &amp;&amp; e.Message.From.IsBot)
  {
    await bot.RestrictChatMemberAsync(GroupId, e.Message.From.Id, DateTime.UtcNow.AddDays(20), false, false, false, false);
  }
  </code></pre>