def poll
      logger.info("Start polling for events")
      while (data = @stdout.gets)
        begin
          brace = data.index('{')
          data = data[brace..-2]
          data = Oj.load(data, mode: :compat)
          @events << data
        rescue
        end
      end
    end
def poll
      logger.info("Start polling for events")
      while (data = @stdout.gets)
        begin
          brace = data.index('{')
          data = data[brace..-2]
          data = Oj.load(data, mode: :compat)
          @events << data
        rescue
        end
      end
    end
Do the long-polling from stdout of the telegram-cli

 @api private