title: Telegram Bot API errors codes (integrating Groups and Channels)
body: <p>I'm working on my open-source project <a href="https://github.com/solyaris/BOTServer" rel="nofollow">BOTServer</a> a <a href="http://telegram.org" rel="nofollow">http://telegram.org</a> Bot Platform Webhooks Server, for Rubyists.</p>
  
  <p>I experienced strange error when sending messages (<code>sendMessage</code> API endpoint) on a Telegram Bot I created. when sending messages to a specific Bot I created, I got these errors:</p>
  
  <ol>
  <li><p>Error code 400 -> <strong>Bad Request: group is deactivated</strong></p>
  
  <p><code>Telegram::Bot::Exceptions::ResponseError - Telegram API has returned the error. (ok: "false", error_code: "400", description: "[Error]: Bad Request: group is deactivated")</code></p></li>
  </ol>
  
  <p>and/or</p>
  
  <ol start="2">
  <li><p>Error code 403 -> <strong>Bot was kicked from a chat</strong></p>
  
  <p><code>Telegram::Bot::Exceptions::ResponseError - Telegram API has returned the error. (ok: "false", error_code: "403", description: "[Error]: Bot was kicked from a chat")</code></p></li>
  </ol>
  
  <p>That's really strange.
  It seems that the problem is related to the "story" of a specific Bot (errors are not systematic and I do not have issues with another bot). In facts I done these steps:</p>
  
  <ol>
  <li>I create the bot (lets cal it: MYbot)</li>
  <li>I ADDED the bot to a Telegram Group (e.g. MYGroup)</li>
  <li>I REMOVED the bot from the Group</li>
  <li>I send messages from the bot in reply to a user (then I got errors)</li>
  </ol>
  
  <p><strong>Question 1</strong>
  Ok I'm pretty sure something wrong happened Telegram Serve side and I could delete and rebuild the bot... Any better idea about a solution ?</p>
  
  <p><strong>Question 2</strong>
  There is a published list of Telegram Bot errors ? I didn't find in Telegram Bot documentation/tutorials.</p>
  
  <p>I love Telegram architecture! But I feel there are some issue/bugs with Bots APIs especially in recent possibilities to insert Bots in Groups and Cahnnel. Any similar experience ?</p>