title: Is there a way to detect if telegram bot has been started in private?
body: <p>This project has been developed on pyTelegramBotAPI module.
  what I need to do is to check if the bot has been started in private chat, since that is mainly runned on a group.</p>
  <p>If I try to send a message from the group to a player that hasn't started yet the bot, my app crashes:</p>
  <pre><code>ERROR - TeleBot: &quot;A request to the Telegram API was unsuccessful.
                    Error code: 403. Description: Forbidden: bot was blocked by the user&quot;
  </code></pre>
  <pre><code>@bot.message_handler(commands=['inventory'])
  def handle_command_adminwindow(message):
      # add column for each 7 elements in matrix
      rootInventory = ref.child(&quot;inventory&quot;).get()
      userPool = []
      userId = message.from_user.id
      items = []
      for i in rootInventory:
          userPool.append(i)
      userId = f&quot;{userId}&quot;
      if userId in userPool:
          refItems = ref.child(&quot;inventory&quot;).child(userId).get()
          for i in refItems:
              items.append(i)
          nitem = len(items)
          while(nitem%7!=0):
              nitem += 1
          #load query witj new data
          inventory(message, items)
  </code></pre>
  <p>then I declare my call:</p>
  <pre><code>def inventario(message, items):
      # List object downloaded from firebase and ready for call actions
      markup = InlineKeyboardMarkup()
      listFruits = [&quot;apple&quot;, &quot;banana&quot;, &quot;strawberry&quot;, &quot;berries&quot;, &quot;kiwi&quot;, &quot;peach&quot;]
      idGamer = message.from_user.id
      idMsg = message.message_id
      i = 0
      while i &lt; len(items):
          row = []
          if items[i] in listFruits:
              row.append(InlineKeyboardButton(text=items[i], callback_data=f&quot;{idGamer}-cb_f{items[i]}&quot;))
          else:
              row.append(InlineKeyboardButton(text=items[i], callback_data=f&quot;cb_other&quot;))
          i += 1
          if items[i] in listFruits:
              row.append(InlineKeyboardButton(text=items[i], callback_data=f&quot;{idGamer}-cb_f{items[i]}&quot;))
          else:
              row.append(InlineKeyboardButton(text=items[i], callback_data=f&quot;cb_other&quot;))
          i += 1
          markup.row(*row)
  
      bot.send_message(message.chat.id, &quot;You can now check your inventory in pvt\nlink to pvp chat with bot&quot;)
      bot.send_message(message.from_user.id, 'Inventory', reply_markup=markup)
  </code></pre>