title: How to output message every 10 items in a list to the chatbot with python-telegram-bot
body: <p>I am writing a Telegram bot with python-telegram-bot package. 
  I want to output a list which store search result to the chatbot with python-telegram-bot. Sometimes the result is more than 4000+ characters and not allow to output. So I want to send the result separately and make it send 10 items in a list per message if the items inside the list is more than 10. So far I can now output the format I want for less than 4000+ characters through the chatbot but I can't figure out how to make as 10 items per message? I checked about slice but it seems only work on list but python-telegram-bot only export text. Since the school_date is dictionary, I also tried to put the for loop between "text = "Searching result：\n"" &amp; "for i, school_data in enumerate(search_result): " and also after this for loop, it kept repeating the last one or repeating individual lines; used split() (wanted to trim from the modified text) but it would mess up the output format.</p>
  
  <p>Here's the ideal output format of items I've been working:</p>
  
  <pre><code>university_name: blablabla
  department: blablabla
  staff_name: blablabla
  ranking: blablabla
  specialisation: blablabla
  website: blablabla
  -----
  university_name: blablabla
  department: blablabla
  staf_name: blablabla
  ranking: blablabla
  specialisation: blablabla
  website: blablabla
  ------
  .
  .
  .
  </code></pre>
  
  <p>Here's the code that I can print no matter how many items there is in the list:</p>
  
  <pre><code>        search_result = []
  
          for items in data["staffs"]:
              specialisation = items["staff_specialisation"]
              if keyword in specialisation:
                  search_result.append({"university_name": items["university"], "department": items["department"], "staff_name": items["staff_name"], "ranking": items["ranking"], "specialisation": items["staff_specialisation"], "website": items["website"]})
  
          text = "Searching result：\n"
          for i, school_data in enumerate(search_result):
              for key in school_data:
                  text += "\n" + "{}:{}".format(key, school_data[key])
              text += "\n------"
  
          update.message.reply_text(text)
  </code></pre>
  
  <p>Many thanks!</p>