title: Send messages to telegram group without user input
body: <p>I'm trying to build a bot which automatically sends a message whenever there is an update in the latest news using python. Following is what I did.</p>
  
  <pre><code>companies = {
      "name_1": {
          "rss": "name_1 rss link",
          "link": "name_1 link"
      }
  }
  
  import feedparser as fp
  import time, telebot
  token = &lt;TOKEN&gt;
  bot = telebot.TeleBot(token)
  LIMIT = 1
  while True:
      def get_news():
          count = 1
          news = []
          for company, value in companies.items():
              count = 1
              if 'rss' in value:
                  d = fp.parse(value['rss'])
                  for entry in d.entries:
                      if hasattr(entry, 'published'):
                          if count &gt; LIMIT:
                              break
                          news.append(entry.link)
                          count = count + 1
  
          return (news)
      val = get_news()
      time.sleep(10)
      val2 = get_news()
      try:
          if val[0]!=val2[0]:
              bot.send_message(chat_id= "Hardcoded chat_id", text=val2[0])
      except Exception:
          pass
  </code></pre>
  
  <p>How can I update my code so that the bot publishes the latest news to all the groups to which it is added?
  I got the chat_id using:
   <code>bot.get_updates()[-1].message.chat.id</code>
  Any suggestions on how to automate this?</p>