title: Telegram Bot API method kickChatMember ignores until_date parameter?
body: <p>I tried using <code>kickChatMember</code> from the Telegram Bot API. In the <a href="https://core.telegram.org/bots/api#kickchatmember" rel="nofollow noreferrer">documentation</a>, it is stated this about the <code>until_date</code> parameter:</p>
  
  <ul>
  <li>Type: Integer </li>
  <li>Required: No</li>
  <li>Description: Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever</li>
  </ul>
  
  <p>However, all the calls result in the same <strong>banned forever</strong> status. Looks like this parameter is being ignored, but maybe I'm not understanding something about how parameters work, the date format of something else.</p>
  
  <p>If you want to test this:</p>
  
  <ol>
  <li><a href="http://t.me/botfather" rel="nofollow noreferrer">Start a conversation with BotFather</a>, create a new bot and set a name and a handle to get a Bot API key.</li>
  <li>Create a group and convert it to a supergroup.</li>
  <li>Add the bot as a group member and grant administrator rights.</li>
  <li>Add <a href="https://t.me/groupinfobot" rel="nofollow noreferrer">GroupInfoBot</a> to the group to <strong>get the supergroup ID</strong>. Please notice the ID is a negative number, even when this bot tells you it's a positive number, e.g. <code>-1001935344181</code>.</li>
  <li>Tell someone else to join the group for testing purposes.</li>
  <li>Forward any message from the testing subject to <a href="https://t.me/userinfobot" rel="nofollow noreferrer">UserInfoBot</a> to <strong>get the user ID</strong>.</li>
  </ol>
  
  <p>Then, just use the web browser to send the HTTP API calls. Make sure to change <code>XXXXXXXXXX:XXXX...</code> to your Bot API key, <code>-1001935344181</code> to your supergroup ID and <code>999999999</code> to your testing subject user ID.</p>
  
  <p>All these calls result in a forever ban.</p>
  
  <p>No parameter:</p>
  
  <pre><code>https://api.telegram.org/botXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/kickChatMember?chat_id=-1001935344181&amp;user_id=999999999
  </code></pre>
  
  <p>10 days from now:</p>
  
  <pre><code>https://api.telegram.org/botXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/kickChatMember?chat_id=-1001935344181&amp;user_id=999999999&amp;until_date=1509090246
  </code></pre>
  
  <p>1 hour from now:</p>
  
  <pre><code>https://api.telegram.org/botXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/kickChatMember?chat_id=-1001935344181&amp;user_id=999999999&amp;until_date=1508230000
  </code></pre>
  
  <p>As a workaround, I can call <code>unbanChatMember</code> afterwards, but I'd prefer to limit API calls as much as possible.</p>