text: import requests
  import os
  import json
  
  class TelegramBot:
      def __init__(self):
          self.token = self.GetBotToken()
          self.host = "https://api.telegram.org/bot{}".format(self.token)
  
      def GetUpdate(self, offset=None):
          url = self.host + "/getUpdates?timeout=100"
          if offset:
              url += "&offset={}".format(offset + 1)
          print(url)
          r = requests.get(url)
          return json.loads(r.content)
  
      def SendMessage(self, msg, chatID):
          url = self.host + "/sendMessage?chat_id={}&text={}".format(chatID, msg)
          if msg is not None:
              requests.get(url)
  
      def GetBotToken(self):
          return os.environ.get('BOT_TOKEN', None)